#include <catch2/catch.hpp>#include <magic_enum/magic_enum_containers.hpp>#include <magic_enum/magic_enum_iostream.hpp>#include <functional>
Go to the source code of this file.
Classes | |
| struct | magic_enum::customize::enum_range< Color > |
| struct | RGB |
Macros | |
| #define | CATCH_CONFIG_MAIN |
Enumerations | |
| enum | Color { Color::RED = -10, Color::BLUE = 0, Color::GREEN = 10, Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4, Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4, Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4, Color::RED = -10, Color::BLUE = 0, Color::GREEN = 10, Color::RED, Color::BLUE, Color::GREEN, Color::RED = -12, Color::GREEN = 7, Color::BLUE = 15, Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4, Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4, Color::RED = 1, Color::GREEN = 2, Color::BLUE = 4, Color::RED = -12, Color::GREEN = 7, Color::BLUE = 15 } |
| enum | Empty |
Functions | |
| template<typename T > | |
| bool | check_const ([[maybe_unused]]T &element) |
| template<typename T > | |
| bool | check_const ([[maybe_unused]]T const &element) |
| TEST_CASE ("containers_array") | |
| TEST_CASE ("containers_bitset") | |
| TEST_CASE ("containers_set") | |
| TEST_CASE ("map_like_container") | |
Variables | |
| constexpr std::uint8_t | color_max = std::numeric_limits<std::uint8_t>::max() |
| #define CATCH_CONFIG_MAIN |
Definition at line 33 of file test_containers.cpp.
|
strong |
| Enumerator | |
|---|---|
| RED | |
| BLUE | |
| GREEN | |
| RED | |
| GREEN | |
| BLUE | |
| RED | |
| GREEN | |
| BLUE | |
| RED | |
| GREEN | |
| BLUE | |
| RED | |
| BLUE | |
| GREEN | |
| RED | |
| BLUE | |
| GREEN | |
| RED | |
| GREEN | |
| BLUE | |
| RED | |
| GREEN | |
| BLUE | |
| RED | |
| GREEN | |
| BLUE | |
| RED | |
| GREEN | |
| BLUE | |
| RED | |
| GREEN | |
| BLUE | |
Definition at line 41 of file test_containers.cpp.
|
strong |
Definition at line 47 of file test_containers.cpp.
| bool check_const | ( | [[maybe_unused] ]T & | element | ) |
Definition at line 66 of file test_containers.cpp.
| bool check_const | ( | [[maybe_unused] ]T const & | element | ) |
Definition at line 67 of file test_containers.cpp.
| TEST_CASE | ( | "containers_array" | ) |
Definition at line 71 of file test_containers.cpp.
| TEST_CASE | ( | "containers_bitset" | ) |
Definition at line 167 of file test_containers.cpp.
| TEST_CASE | ( | "containers_set" | ) |
Definition at line 245 of file test_containers.cpp.
| TEST_CASE | ( | "map_like_container" | ) |
Definition at line 295 of file test_containers.cpp.
|
constexpr |
Definition at line 69 of file test_containers.cpp.