WPILibC++ 2024.3.2
STLForwardCompat.h 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::remove_cvref< T >
 

Namespaces

namespace  wpi
 

Functions

template<typename T , typename Function >
auto wpi::transformOptional (const std::optional< T > &O, const Function &F) -> std::optional< decltype(F(*O))>
 
template<typename T , typename Function >
auto wpi::transformOptional (std::optional< T > &&O, const Function &F) -> std::optional< decltype(F(*std::move(O)))>
 

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.