|
relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
|
Compile-time string type that can be used as template non-type parameter in C++20. More...
#include <relx/schema/fixed_string.hpp>
Public Member Functions | |
| constexpr | fixed_string (const char(&str)[N]) |
| constexpr | fixed_string (const fixed_string &)=default |
| constexpr | operator std::string_view () const |
| constexpr const char * | c_str () const |
| constexpr std::size_t | size () const |
| constexpr bool | empty () const |
| template<std::size_t M> | |
| constexpr bool | operator== (const fixed_string< M > &other) const |
| template<std::size_t M> | |
| constexpr bool | operator!= (const fixed_string< M > &other) const |
Public Attributes | |
| char | value [N] |
Compile-time string type that can be used as template non-type parameter in C++20.
This implementation allows usage like:
struct Users { static constexpr auto table_name = "users"; relx::schema::column<"id", int> id; relx::schema::column<"name", std::string> name; relx::schema::column<"email", std::string> email; };
Definition at line 25 of file fixed_string.hpp.
|
inlineconstexpr |
Definition at line 26 of file fixed_string.hpp.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 36 of file fixed_string.hpp.
|
inlineconstexpr |
Definition at line 42 of file fixed_string.hpp.
|
inlineconstexpr |
Definition at line 32 of file fixed_string.hpp.
|
inlineconstexpr |
Definition at line 50 of file fixed_string.hpp.
|
inlineconstexpr |
Definition at line 45 of file fixed_string.hpp.
|
inlineconstexpr |
Definition at line 38 of file fixed_string.hpp.
| char relx::schema::fixed_string< N >::value[N] |
Definition at line 30 of file fixed_string.hpp.