Function Option

Summary

#include <include/internal/catch_option.hpp>

(1) Option()

(2) Option(T const &_value)

(3) Option(Option const &_other)

Function overload

Synopsis

#include <include/internal/catch_option.hpp>

Option()

Description

No description yet.

Source

Lines 17-17 in include/internal/catch_option.hpp.

Option() : nullableValue( nullptr ) {}

Synopsis

#include <include/internal/catch_option.hpp>

Option(T const &_value)

Description

No description yet.

Source

Lines 18-20 in include/internal/catch_option.hpp.

Option( T const& _value )
: nullableValue( new( storage ) T( _value ) )
{}

Synopsis

#include <include/internal/catch_option.hpp>

Option(Option const &_other)

Description

No description yet.

Source

Lines 21-23 in include/internal/catch_option.hpp.

Option( Option const& _other )
: nullableValue( _other ? new( storage ) T( *_other ) : nullptr )
{}





Add Discussion as Guest

Log in