Sygaldry
Loading...
Searching...
No Matches
sygaldry::sygbp::osc_type_string< T > Struct Template Reference

Static Public Attributes

static constexpr size_t N = osc_type_string_length<T>()
 
static constexpr std::array< char, N > value
 

Member Data Documentation

◆ value

template<typename T >
constexpr std::array<char, N> sygaldry::sygbp::osc_type_string< T >::value
staticconstexpr
Initial value:
= []()
{
std::array<char, N> ret{0};
ret[0] = ',';
if constexpr (Bang<T>) return ret;
char tag;
if constexpr (std::integral<element_t<T>>) tag = 'i';
else if constexpr (std::floating_point<element_t<T>>) tag = 'f';
else if constexpr (string_like<element_t<T>>) tag = 's';
else return ret;
if constexpr (array_like<value_t<T>>)
for (std::size_t i = 0; i < size<value_t<T>>(); ++i)
ret[1 + i] = tag;
else ret[1] = tag;
return ret;
}()
Definition sygac-endpoints.hpp:92
Definition sygac-endpoints.hpp:166
Definition sygac-endpoints.hpp:161
#define tag(TAG)
Helper struct for defining recognized tags. This is immediately undefed, so don't try to use it!
Definition sygah-endpoints.hpp:238

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