Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
helios::utils::details::FixedString< N > Struct Template Reference

A fixed-size string that can be constructed at compile time. More...

#include <type_info.hpp>

Public Member Functions

consteval FixedString (std::string_view sv) noexcept
consteval operator std::string_view () const noexcept

Public Attributes

char data [N+1]

Detailed Description

template<size_t N>
struct helios::utils::details::FixedString< N >

A fixed-size string that can be constructed at compile time.

Template Parameters
NThe size of the string (excluding the null terminator)

Definition at line 61 of file type_info.hpp.

Constructor & Destructor Documentation

◆ FixedString()

template<size_t N>
helios::utils::details::FixedString< N >::FixedString ( std::string_view sv)
inlineexplicitconstevalnoexcept

Definition at line 62 of file type_info.hpp.

Member Function Documentation

◆ operator std::string_view()

template<size_t N>
helios::utils::details::FixedString< N >::operator std::string_view ( ) const
inlineconstevalnoexcept

Definition at line 67 of file type_info.hpp.

Member Data Documentation

◆ data

template<size_t N>
char helios::utils::details::FixedString< N >::data[N+1]

Definition at line 69 of file type_info.hpp.