3#ifndef _aspose_system_default_h_
4#define _aspose_system_default_h_
6#include "system/boxable_traits.h"
7#include "system/shared_ptr.h"
8#include "system/object.h"
16typename std::enable_if<IsExceptionWrapper<T>::value,
const T&>::type
Default()
18 static T value = T(
nullptr);
25typename std::enable_if<!IsExceptionWrapper<T>::value,
const T&>::type
Default()
36 return System::Default<T>();
43T&
Discard(T&& initial = Details::DefaultValue<T>())
45 return std::forward<T&>(initial);
Definition: db_command.h:9
T & Discard(T &&initial=Details::DefaultValue< T >())
Returns the default-constructed temporary instance of the specified type, which can be placed instead...
Definition: default.h:43
std::enable_if< IsExceptionWrapper< T >::value, constT & >::type Default()
Returns the reference to the single default-constructed instance of the exception type.
Definition: default.h:16