Provides helper classes for use with template metaprogramming and type analysis. The need for these will likely diminish as Regina switches to use more modern C++ standards.
More...
|
template<int from, int to, class Action > |
constexpr void | regina::for_constexpr (Action &&action) |
| Implements a compile-time for loop over a range of integers. More...
|
|
template<int from, int to, typename Return , class Action > |
constexpr Return | regina::select_constexpr (int value, Action &&action) |
| Implements a compile-time selection, where the runtime argument must belong to a compile-time range of integers, and the value of the argument determines what is returned. More...
|
|
template<int from, int to, class Action > |
constexpr auto | regina::select_constexpr_as_variant (int value, Action &&action) |
| A variant of select_constexpr() where the return type is a variant, built from the return types for all integers in the given compile-time range. More...
|
|
const char * | regina::pythonTypename (const std::type_info *t) |
| Returns the preferred Python display name for the given C++ type. More...
|
|
Provides helper classes for use with template metaprogramming and type analysis. The need for these will likely diminish as Regina switches to use more modern C++ standards.