Sygaldry
Loading...
Searching...
No Matches
sygaldry::sygbp::osc_path< L< Path... > > Struct Template Reference

Static Public Attributes

static constexpr size_t N = osc_path_length<L<std::decay_t<Path>...>>() + 1
 
static constexpr std::array< char, N > value
 

Member Data Documentation

◆ value

template<template< typename... >typename L, typename ... Path>
constexpr std::array<char, N> sygaldry::sygbp::osc_path< L< Path... > >::value
staticconstexpr
Initial value:
= []()
{
L<std::decay_t<Path>...> path;
std::array<char, N> ret;
std::size_t write_pos = 0;
auto copy_one = [&]<typename T>(T)
{
ret[write_pos++] = '/';
for (std::size_t i = 0; i < name_length<T>(); ++i)
{
ret[write_pos++] = snake_case_v<T>[i];
}
};
tpl::apply([&]<typename ... Ts>(Ts... ts)
{
(copy_one(ts), ...);
}, path);
ret[write_pos] = 0;
return ret;
}()

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