|
UniDx
|
インターンプールに貯めて使う文字列 高速に比較できる [詳解]
#include <StringId.h>
公開メンバ関数 | |
| StringId () | |
| constexpr std::u8string_view | view () const noexcept |
| const char * | c_str () const |
| operator u8string () const | |
| operator std::string () const | |
| operator u8string_view () const | |
| operator std::string_view () const | |
静的公開メンバ関数 | |
| static StringId | intern (std::string_view sv) |
| 文字列を必要に応じてプールに貯めてID化 | |
| static StringId | intern (const char8_t *s) |
| 文字列を必要に応じてプールに貯めてID化 | |
| static StringId | intern (std::u8string_view sv) |
| 文字列を必要に応じてプールに貯めてID化 | |
フレンド | |
| class | InternPool |
| bool | operator== (StringId a, StringId b) noexcept |
| 比較演算。内容比較しないので高速 | |
| bool | operator!= (StringId a, StringId b) noexcept |
インターンプールに貯めて使う文字列 高速に比較できる
|
inline |
|
inline |
|
inlinestatic |
文字列を必要に応じてプールに貯めてID化
|
inlinestatic |
文字列を必要に応じてプールに貯めてID化
|
inlinestatic |
文字列を必要に応じてプールに貯めてID化
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineconstexprnoexcept |
|
friend |