#include "arg_router/config.hpp"
#include "arg_router/math.hpp"
#include <array>
#include "arg_router/traits.hpp"
#include <boost/mp11/algorithm.hpp>
#include <boost/preprocessor/repetition/enum.hpp>
Go to the source code of this file.
|
#define | S_(tok) AR_STR_N(AR_MAX_CTS_SIZE, tok) |
|
◆ S_
#define S_ |
( |
|
tok | ) |
AR_STR_N(AR_MAX_CTS_SIZE, tok) |
Macro that represents the type of a compile-time string, useful for policies that require a compile string.
There is no requirement to use this, it just makes definitions easier to read.
- Note
- The size limit is set by using the AR_MAX_CTS_SIZE define (defaults to 128). Increasing this will not increase the size of your program, but will increase build time as the preprocessor and compiler have to do more work
- Parameters
-
tok | Can be a string literal, a std::string_view , or a single char |
- Examples
- c++17/basic_cat/main.cpp, c++17/custom_policy_and_node/main.cpp, c++17/just_cats/main.cpp, c++17/launcher/main.cpp, c++17/runtime_node_enable/main.cpp, c++17/simple/main.cpp, c++17/simple_ml/main.cpp, and c++17/simple_ml_gen/main.cpp.
Definition at line 572 of file compile_time_string.hpp.