The class template std::integer_sequence represents a compile-time sequence of integers. When used as an argument to a function template, the parameter pack Ints can be deduced and used in pack expansion.
More...
#include <integer_sequence.hpp>
|
using | value_type = T |
| provides the member typedef "value_type"
|
|
|
static constexpr bsl::uintmax | size () noexcept |
| Equivalent to sizeof...(INTS) More...
|
|
static constexpr T | max () noexcept |
| Returns the max integer in the sequence. More...
|
|
static constexpr T | min () noexcept |
| Returns the min integer in the sequence. More...
|
|
template<typename T, T... INTS>
class bsl::integer_sequence< T, INTS >
The class template std::integer_sequence represents a compile-time sequence of integers. When used as an argument to a function template, the parameter pack Ints can be deduced and used in pack expansion.
namespace bsl
{
inline void
example_integer_sequence_overview() noexcept
{
}
}
}
}
}
- Template Parameters
-
T | the type that defines the sequence of integers |
INTS | the integers that make up the integer sequence |
◆ size()
template<typename T , T... INTS>
Equivalent to sizeof...(INTS)
namespace bsl
{
inline void
example_integer_sequence_size() noexcept
{
}
}
}
- Returns
- Equivalent to sizeof...(INTS)
◆ max()
template<typename T , T... INTS>
Returns the max integer in the sequence.
namespace bsl
{
inline void
example_integer_sequence_max() noexcept
{
}
}
}
- Returns
- Returns the max integer in the sequence
◆ min()
template<typename T , T... INTS>
Returns the min integer in the sequence.
namespace bsl
{
inline void
example_integer_sequence_min() noexcept
{
}
}
}
- Returns
- Returns the min integer in the sequence
The documentation for this class was generated from the following file: