chenjunfu2-nbt-cpp v2.1.0
一个基于CPP20的NBT(Named Binary Tag)库
载入中...
搜索中...
未找到
MUTF8_Tool_Internal::StringLiteral< T, N > 模板类 参考

用于编译期构造静态字符串字面量为字符数组,作为模板参数,使得模板能接受字符串的辅助类 更多...

#include <MUTF8_Tool.hpp>

类 MUTF8_Tool_Internal::StringLiteral< T, N > 继承关系图:

Public 类型

using Super = std::array<T, N>
 父类类型定义

Public 成员函数

constexpr StringLiteral (const T(&_tStr)[N]) noexcept
 从字符串数组的引用拷贝构造
constexpr ~StringLiteral (void)=default
 默认析构

详细描述

template<typename T, size_t N>
class MUTF8_Tool_Internal::StringLiteral< T, N >

用于编译期构造静态字符串字面量为字符数组,作为模板参数,使得模板能接受字符串的辅助类

模板参数
T字符串的字符类型
N自动匹配数组长度
注解
用户不应直接使用此类

构造及析构函数说明

◆ StringLiteral()

template<typename T, size_t N>
MUTF8_Tool_Internal::StringLiteral< T, N >::StringLiteral ( const T(&) _tStr[N])
inlineconstexprnoexcept

从字符串数组的引用拷贝构造

参数
_tStr字符串数组的引用
注解
可编译期构造

◆ ~StringLiteral()

template<typename T, size_t N>
MUTF8_Tool_Internal::StringLiteral< T, N >::~StringLiteral ( void )
constexprdefault

默认析构

注解
可编译期析构

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