#include <optional>#include <string>#include <string_view>#include <catch2/catch.hpp>#include <magic_enum/magic_enum.hpp>#include <magic_enum/magic_enum_flags.hpp>
Go to the source code of this file.
Classes | |
| struct | MyOpt< T > |
| struct | MyString |
| struct | MyStringView |
Macros | |
| #define | CATCH_CONFIG_MAIN |
| #define | MAGIC_ENUM_USING_ALIAS_OPTIONAL template<typename T> using optional = MyOpt<T>; |
| #define | MAGIC_ENUM_USING_ALIAS_STRING using string = MyString; |
| #define | MAGIC_ENUM_USING_ALIAS_STRING_VIEW using string_view = MyStringView; |
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 } |
Functions | |
| constexpr bool | operator== (MyStringView lhs, MyStringView rhs) |
| TEST_CASE ("optional") | |
| TEST_CASE ("string") | |
| TEST_CASE ("string_view") | |
| #define CATCH_CONFIG_MAIN |
Definition at line 27 of file test_aliases.cpp.
| #define MAGIC_ENUM_USING_ALIAS_OPTIONAL template<typename T> using optional = MyOpt<T>; |
Definition at line 95 of file test_aliases.cpp.
| #define MAGIC_ENUM_USING_ALIAS_STRING using string = MyString; |
Definition at line 96 of file test_aliases.cpp.
| #define MAGIC_ENUM_USING_ALIAS_STRING_VIEW using string_view = MyStringView; |
Definition at line 97 of file test_aliases.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 104 of file test_aliases.cpp.
|
constexpr |
Definition at line 91 of file test_aliases.cpp.
| TEST_CASE | ( | "optional" | ) |
Definition at line 106 of file test_aliases.cpp.
| TEST_CASE | ( | "string" | ) |
Definition at line 115 of file test_aliases.cpp.
| TEST_CASE | ( | "string_view" | ) |
Definition at line 129 of file test_aliases.cpp.