Ctrl-Z
一个多线程机器人运动控制强化学习部署框架
载入中...
搜索中...
未找到
z::CTSArray< CTS > 模板类 参考

compile time string array 更多...

#include <StaticStringUtils.hpp>

Public 成员函数

constexpr CTSArray ()
 construct a new CTSArray object
 

静态 Public 成员函数

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

模板参数
CTScompile time strings

成员函数说明

◆ index() [1/2]

template<CTString ... CTS>
template<CTString CT>
static constexpr size_t z::CTSArray< CTS >::index ( )
inlinestaticconstexpr

get the index of a compile time string in the array during compile time

模板参数
CTcompile time string to search
返回
constexpr size_t index of the compile time string in the array

◆ index() [2/2]

template<CTString ... CTS>
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

参数
strruntime string to search
返回
static size_t index of the compile time string in the array

◆ size()

template<CTString ... CTS>
static constexpr size_t z::CTSArray< CTS >::size ( )
inlinestaticconstexpr

get the size of the array in compile time

返回
constexpr size_t

该类的文档由以下文件生成: