ADTF
3.18.2
|
Class and function templates extending std type traits functionality. More...
Go to the source code of this file.
Classes | |
struct | underlying_type_or_type< T, bool > |
Retrieves the underlying type if T is an enum, otherwise the type itself. More... | |
struct | underlying_type_or_type< T, true > |
Retrieves the underlying type of the enum type T . More... | |
struct | is_explicitly_convertible_to< T, U > |
Checks if there is an explicitly defined conversion from U to T . More... | |
Namespaces | |
a_util | |
Serves as the root component, with common functionality documented in core functionality. | |
Typedefs | |
template<class T , bool is_enum = std::is_enum_v<T>> | |
using | underlying_type_or_type_t = typename underlying_type_or_type< T, is_enum >::type |
Retrieves the underlying type if T is an enum, otherwise the type itself. More... | |
Variables | |
template<typename T > | |
constexpr bool | is_enum_v = is_enum<T>::value |
C++17 backport of std::is_enum_v. | |
template<class T , class U > | |
constexpr bool | is_explicitly_convertible_to_v = is_explicitly_convertible_to<T, U>::value |
Helper variable template for is_explicitly_convertible_to. More... | |
Class and function templates extending std type traits functionality.
Copyright @ 2023 VW Group. All rights reserved. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
Definition in file type_traits.h.