WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
STLForwardCompat.hpp File Reference

This file contains library features backported from future STL versions. More...

#include <optional>
#include <type_traits>

Go to the source code of this file.

Classes

struct  wpi::util::remove_cvref< T >

Namespaces

namespace  wpi
namespace  wpi::util

Typedefs

template<typename T>
using wpi::util::remove_cvref_t

Functions

template<typename T, typename Function>
auto wpi::util::transformOptional (const std::optional< T > &O, const Function &F) -> std::optional< decltype(F(*O))>
template<typename T, typename Function>
auto wpi::util::transformOptional (std::optional< T > &&O, const Function &F) -> std::optional< decltype(F(*std::move(O)))>
template<typename Enum>
constexpr std::underlying_type_t< Enum > wpi::util::to_underlying (Enum E)
 Returns underlying integer value of an enum.

Detailed Description

This file contains library features backported from future STL versions.

These should be replaced with their STL counterparts as the C++ version LLVM is compiled with is updated.