MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
MobileRT::std Namespace Reference

Functions

template<typename T , typename... Args>
::std::unique_ptr< T > make_unique (Args &&... args)
 
template<typename T >
::std::string to_string (const T &str)
 

Function Documentation

◆ make_unique()

template<typename T , typename... Args>
::std::unique_ptr<T> MobileRT::std::make_unique ( Args &&...  args)

C++ versions: 199711L <=> C++98 or C++03 201103L <=> C++11 201402L <=> C++14 201703L <=> C++17 202002L <=> C++20 The make_unique method to be used when the version of the C++ language is older than C++14.

Template Parameters
TThe type of the object to construct.
ArgsThe type of the arguments.
Parameters
argsThe arguments to build the object.
Returns
A unique_ptr of an object of type T.

◆ to_string()

template<typename T >
::std::string MobileRT::std::to_string ( const T &  str)

Helper method that converts any type to std::string for older compilers that are not C++11 compliant.

Template Parameters
TThe type of the object to be converted to std::string.
Parameters
strThe object to be converted to std::string.
Returns
The object in std::string format.
Here is the caller graph for this function: