ModErn Text Analysis
META Enumerates Textual Applications
Classes | Namespaces | Functions | Variables
optional.h File Reference
#include <stdexcept>
#include <type_traits>
#include "util/comparable.h"
#include "util/optional.tcc"

Go to the source code of this file.

Classes

struct  meta::util::trivial_init_t
 A tag for trivial initialization of optional storage. More...
 
struct  meta::util::nullopt_t
 A dummy type for representing a disengaged option<T>. More...
 
struct  meta::util::nullopt_t::init
 An empty object. More...
 
struct  meta::util::optional_dummy_t
 A dummy type for optional storage. More...
 
union  meta::util::optional_storage< T >
 A storage class for the optional<T> class. More...
 
class  meta::util::optional< T >
 A class for representing optional values. More...
 
class  meta::util::bad_optional_access
 Exception thrown when trying to obtain the value of a non-engaged optional. More...
 

Namespaces

 meta
 The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
 
 meta::util
 Shared resources and utilities.
 

Functions

template<class T >
bool meta::util::operator< (const optional< T > &lhs, const optional< T > &rhs)
 

Variables

constexpr struct meta::util::trivial_init_t meta::util::trivial_init
 
constexpr nullopt_t meta::util::nullopt {nullopt_t::init{}}
 A global nullopt_t constant.
 

Detailed Description

Author
Chase Geigle

All files in META are dual-licensed under the MIT and NCSA licenses. For more details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the project.