|
CNum 0.2.1
CPU-optimized ML library for C++
|
The path of a route in the REST API. More...
#include <Deploy.h>
Public Member Functions | |
| constexpr | PathString (const char(&s)[MAX_URL_LEN]) |
| constexpr | operator crow::black_magic::const_str () const |
| constexpr | operator::std::string () const |
Public Attributes | |
| char | str [MAX_URL_LEN] |
The path of a route in the REST API.
This struct is necessary because of Crow C++ requirements for strings when adding a route. Typically a string literal is enough, but I wanted to create an abstraction for adding routes to the API so a struct that can be cast to a constexpr std::string and constexpr crow::black_magic::const_str is needed
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
| char CNum::Deploy::PathString::str[MAX_URL_LEN] |