libtmx  0.4.0
an C++11 library for reading TMX files
Public Member Functions | List of all members
tmx::Adaptor Struct Reference

An adaptor to get raw pointer from a unique pointer. More...

#include <tmx/Adaptor.h>

Public Member Functions

template<typename T >
const T * operator() (const std::unique_ptr< T > &p) const
 Get the raw pointer from a unique pointer. More...
 

Detailed Description

An adaptor to get raw pointer from a unique pointer.

Member Function Documentation

template<typename T >
const T* tmx::Adaptor::operator() ( const std::unique_ptr< T > &  p) const
inline

Get the raw pointer from a unique pointer.

Parameters
pthe unique pointer
Returns
the corresponding raw pointer