My Project
List of all members
bsl::rank< T > Class Template Referencefinal

If T is an array type, provides the member constant value equal to the number of dimensions of the array. For any other type, value is 0. More...

#include <rank.hpp>

Inherits bsl::integral_constant< bsl::uintmax, 0 >.

Additional Inherited Members

- Public Types inherited from bsl::integral_constant< bsl::uintmax, 0 >
using type = integral_constant< bsl::uintmax, v >
 provides the member typedef "type"
 
using value_type = bsl::uintmax
 provides the member typedef "value_type"
 
- Static Public Attributes inherited from bsl::integral_constant< bsl::uintmax, 0 >
static constexpr value_type value
 the type T that stores the integral constant
 

Detailed Description

template<typename T>
class bsl::rank< T >

If T is an array type, provides the member constant value equal to the number of dimensions of the array. For any other type, value is 0.

#include <bsl/rank.hpp>
#include <bsl/debug.hpp>
namespace bsl
{
inline void
example_rank_overview() noexcept
{
if (bsl::rank<bool[]>::value == 1) { // NOLINT
bsl::print() << "success\n";
}
}
}
Template Parameters
Tthe type to get the rank from

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