SI  2.5.4
A header only c++ library that provides type safety and user defined literals for handling physical values defined in the International System of Units.
Static Public Attributes | List of all members
SI::detail::unit_symbol_impl< Cs > Struct Template Reference

Compile time string provider for conversion of unit types to strings. More...

#include <unit_symbol.h>

Collaboration diagram for SI::detail::unit_symbol_impl< Cs >:
Collaboration graph
[legend]

Static Public Attributes

static constexpr const std::array< char, sizeof...(Cs)> value {{Cs...}}
 
static constexpr const std::string_view str {value.data(), value.size()}
 

Detailed Description

template<char... Cs>
struct SI::detail::unit_symbol_impl< Cs >

Compile time string provider for conversion of unit types to strings.

Member Data Documentation

◆ str

template<char... Cs>
constexpr const std::string_view SI::detail::unit_symbol_impl< Cs >::str {value.data(), value.size()}
staticconstexpr

◆ value

template<char... Cs>
constexpr const std::array<char, sizeof...(Cs)> SI::detail::unit_symbol_impl< Cs >::value {{Cs...}}
staticconstexpr

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