Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::StaticString< N > Struct Template Reference

A compile time string implementation. Supports compile time string concatenation and conversion to std::string, std::string_view and null terminated const char*. The stored string is null terminated. More...

#include <staticstring.h>

Public Member Functions

constexpr StaticString (std::string_view sv) noexcept
template<typename... Ts>
constexpr StaticString (Ts &&... strs)
constexpr size_t size () const noexcept
constexpr char * data () noexcept
constexpr const char * data () const noexcept
constexpr auto begin () const noexcept
constexpr auto begin () noexcept
constexpr auto end () const noexcept
constexpr auto end () noexcept
constexpr operator std::string_view () const noexcept
constexpr operator fmt::string_view () const noexcept
constexpr std::string_view view () const noexcept
std::string string () const
 operator std::string () const noexcept
constexpr const char * c_str () const

Public Attributes

std::array< char, N+1 > str {0}

Detailed Description

template<size_t N>
struct inviwo::StaticString< N >

A compile time string implementation. Supports compile time string concatenation and conversion to std::string, std::string_view and null terminated const char*. The stored string is null terminated.


The documentation for this struct was generated from the following file:
  • staticstring.h