compile time string array
更多...
#include <StaticStringUtils.hpp>
|
|
constexpr | CTSArray () |
| | construct a new CTSArray object
|
| |
|
| static constexpr size_t | size () |
| | get the size of the array in compile time
|
| |
| template<CTString CT> |
| static constexpr size_t | index () |
| | get the index of a compile time string in the array during compile time
|
| |
| static size_t | index (const std::string_view &str) |
| | get the index of a compile time string in the array during runtime
|
| |
template<
CTString ... CTS>
class z::CTSArray< CTS >
compile time string array
- 模板参数
-
◆ index() [1/2]
get the index of a compile time string in the array during compile time
- 模板参数
-
| CT | compile time string to search |
- 返回
- constexpr size_t index of the compile time string in the array
◆ index() [2/2]
| static size_t z::CTSArray< CTS >::index |
( |
const std::string_view & | str | ) |
|
|
inlinestatic |
get the index of a compile time string in the array during runtime
- 参数
-
| str | runtime string to search |
- 返回
- static size_t index of the compile time string in the array
◆ size()
get the size of the array in compile time
- 返回
- constexpr size_t
该类的文档由以下文件生成: