mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Add more type traits to CTL
This commit is contained in:
parent
e437bed006
commit
44191b3f50
12 changed files with 286 additions and 0 deletions
|
@ -11,10 +11,12 @@ struct integral_constant
|
|||
static constexpr T value = v;
|
||||
typedef T value_type;
|
||||
typedef integral_constant type;
|
||||
|
||||
constexpr operator value_type() const noexcept
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
constexpr value_type operator()() const noexcept
|
||||
{
|
||||
return value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue