kokkos-execution 0.0.1
Loading...
Searching...
No Matches
Kokkos::Execution::Impl::FixedString< N > Struct Template Reference

Fixed-capacity string built from a char array. More...

#include <fixed_string.hpp>

Public Member Functions

constexpr FixedString (const char(&str)[N]) noexcept
constexpr auto size () const noexcept
constexpr auto begin () const noexcept
constexpr auto end () const noexcept
constexpr operator std::string_view () const noexcept(noexcept(view()))
constexpr auto view () const noexcept(noexcept(std::string_view{data, size()})) -> decltype(std::string_view{data, size()})

Public Attributes

char data [N] {}

Detailed Description

template<std::size_t N>
struct Kokkos::Execution::Impl::FixedString< N >

Fixed-capacity string built from a char array.

Note
Nothing is done to verify if the null terminator is present.
It is a structural type, so it can be used as a non-type template parameter.

Definition at line 20 of file fixed_string.hpp.

Constructor & Destructor Documentation

◆ FixedString()

template<std::size_t N>
Kokkos::Execution::Impl::FixedString< N >::FixedString ( const char(&) str[N])
inlineconstexprnoexcept

Definition at line 23 of file fixed_string.hpp.

References data.

Member Function Documentation

◆ begin()

template<std::size_t N>
auto Kokkos::Execution::Impl::FixedString< N >::begin ( ) const
inlineconstexprnoexcept

Definition at line 31 of file fixed_string.hpp.

References data.

◆ end()

template<std::size_t N>
auto Kokkos::Execution::Impl::FixedString< N >::end ( ) const
inlineconstexprnoexcept

Definition at line 35 of file fixed_string.hpp.

References data.

◆ operator std::string_view()

template<std::size_t N>
Kokkos::Execution::Impl::FixedString< N >::operator std::string_view ( ) const
inlineconstexprnoexcept

Definition at line 39 of file fixed_string.hpp.

References view().

◆ size()

template<std::size_t N>
auto Kokkos::Execution::Impl::FixedString< N >::size ( ) const
inlineconstexprnoexcept

Definition at line 27 of file fixed_string.hpp.

◆ view()

template<std::size_t N>
auto Kokkos::Execution::Impl::FixedString< N >::view ( ) const -> decltype(std::string_view{data, size()})
inlinenodiscardconstexprnoexcept

Definition at line 44 of file fixed_string.hpp.

References data, operator std::string_view(), and size().

Member Data Documentation

◆ data

template<std::size_t N>
char Kokkos::Execution::Impl::FixedString< N >::data[N] {}

Definition at line 21 of file fixed_string.hpp.


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