WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
type_traits.hpp File Reference
#include "wpi/util/Compiler.hpp"
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

class  wpi::util::is_integral_or_enum< T >
 Metafunction that determines whether the given type is either an integral type or an enumeration type, including enum classes. More...
struct  wpi::util::add_lvalue_reference_if_not_pointer< T, Enable >
 If T is a pointer, just return it. If it is not, return T&. More...
struct  wpi::util::add_lvalue_reference_if_not_pointer< T, std::enable_if_t< std::is_pointer_v< T > > >
struct  wpi::util::add_const_past_pointer< T, Enable >
 If T is a pointer to X, return a pointer to const X. More...
struct  wpi::util::add_const_past_pointer< T, std::enable_if_t< std::is_pointer_v< T > > >
struct  wpi::util::const_pointer_or_const_ref< T, Enable >
struct  wpi::util::const_pointer_or_const_ref< T, std::enable_if_t< std::is_pointer_v< T > > >
union  wpi::util::detail::trivial_helper< T >

Namespaces

namespace  wpi
namespace  wpi::util
namespace  wpi::util::detail
 These are wrappers over isa* function that allow them to be used in generic algorithms such as wpi::util:all_of, wpi::util::none_of, etc.

Functions

template<class Lambda, int = (Lambda{}(), 0)>
constexpr bool wpi::util::is_constexpr (Lambda)
constexpr bool wpi::util::is_constexpr (...)