VapourSynth-llvmexpr
Loading...
Searching...
No Matches
FixedString< N > Struct Template Reference

#include <llvmexpr/utils/FixedString.hpp>

Public Member Functions

constexpr FixedString (const char(&str)[N])
constexpr std::string_view view () const

Public Attributes

std::array< char, N > value

Detailed Description

template<std::size_t N>
struct FixedString< N >

Copyright (C) 2025 yuygfgg

This file is part of Vapoursynth-llvmexpr.

Vapoursynth-llvmexpr is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Vapoursynth-llvmexpr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Vapoursynth-llvmexpr. If not, see https://www.gnu.org/licenses/.

Definition at line 28 of file FixedString.hpp.

Constructor & Destructor Documentation

◆ FixedString()

template<std::size_t N>
FixedString< N >::FixedString ( const char(&) str[N])
inlineexplicitconstexpr

Definition at line 32 of file FixedString.hpp.

32 {
33 std::ranges::copy(str, value.begin());
34 }
std::array< char, N > value

References value.

Member Function Documentation

◆ view()

template<std::size_t N>
std::string_view FixedString< N >::view ( ) const
inlinenodiscardconstexpr

Definition at line 36 of file FixedString.hpp.

36 {
37 return {value.data(), N - 1};
38 }

References value.

Member Data Documentation

◆ value

template<std::size_t N>
std::array<char, N> FixedString< N >::value

Definition at line 29 of file FixedString.hpp.

Referenced by FixedString(), and view().


The documentation for this struct was generated from the following file: