PROJ C++ API
Public Member Functions | List of all members
osgeo::proj::util::optional< T > Class Template Reference

Loose transposition of std::optional available from C++17. More...

#include <util.hpp>

Public Member Functions

const T * operator-> () const
 
const T & operator* () const
 
 operator bool () const noexcept
 
bool has_value () const noexcept
 

Detailed Description

template<class T>
class osgeo::proj::util::optional< T >

Loose transposition of std::optional available from C++17.

Member Function Documentation

template<class T>
bool osgeo::proj::util::optional< T >::has_value ( ) const
inlinenoexcept

Return whether the optional has a value

template<class T>
osgeo::proj::util::optional< T >::operator bool ( ) const
inlineexplicitnoexcept

Return whether the optional has a value

template<class T>
const T& osgeo::proj::util::optional< T >::operator* ( ) const
inline

Returns a reference to the contained value.

template<class T>
const T* osgeo::proj::util::optional< T >::operator-> ( ) const
inline

Returns a pointer to the contained value.


The documentation for this class was generated from the following file: