SPH
Classes | Functions
Any.h File Reference

Object that can store value of any type. More...

#include "objects/wrappers/AutoPtr.h"
#include "objects/wrappers/Optional.h"
#include <typeinfo>

Go to the source code of this file.

Classes

class  Any
 Type-safe object that can store value of any type, similar to std::any. More...
 

Functions

template<typename Type >
Optional< Type > anyCast (const Any &any)
 

Detailed Description

Object that can store value of any type.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file Any.h.

Function Documentation

◆ anyCast()

template<typename Type >
Optional<Type> anyCast ( const Any any)

On success returns the value, otherwise NOTHING.

Definition at line 178 of file Any.h.