|
| constexpr | ConstexprPath ()=default |
| | Creates an empty constexpr path.
|
| constexpr | ConstexprPath (const char(&literal)[N]) |
| | Creates a constexpr path from a string literal.
|
| constexpr std::string_view | view () const |
| | Gets this path as a string view.
|
| std::filesystem::path | fsPath () const |
| | Converts this path to a filesystem path.
|
| std::string | string () const |
| | Converts this path to a string.
|
| constexpr const char * | c_str () const |
| | Gets a null-terminated character pointer.
|
| | operator std::filesystem::path () const |
| | Converts this constexpr path to a filesystem path.
|
| template<size_t M> |
| constexpr auto | operator/ (const char(&other)[M]) const |
| | Appends a string literal path segment.
|
| std::filesystem::path | operator/ (const std::filesystem::path &other) const |
| | Appends a runtime filesystem path segment.
|
| std::filesystem::path | operator/ (std::string_view other) const |
| | Appends a runtime string-view path segment.
|
template<size_t N>
class Engine::Core::ConstexprPath< N >
Fixed-size path string that supports constexpr path composition.
ConstexprPath stores a string literal without dynamic allocation and can append literal path segments at compile time. Convert it to std::filesystem::path when passing it to runtime file APIs.
- Template Parameters
-
| N | Size of the backing string literal, including the null terminator. |
Definition at line 26 of file Path.h.