All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StdMeshLoaderBinaryChunks.cpp File Reference
#include "C4Include.h"
#include "lib/StdMeshLoaderBinaryChunks.h"
#include "lib/StdMeshLoaderDataStream.h"
#include <cassert>
#include <string>
#include <utility>
Include dependency graph for StdMeshLoaderBinaryChunks.cpp:

Go to the source code of this file.




template<typename To , typename From >
std::unique_ptr< To > static_unique_cast (From &&p)

Function Documentation

template<typename To , typename From >
std::unique_ptr<To> static_unique_cast ( From &&  p)

Definition at line 25 of file StdMeshLoaderBinaryChunks.cpp.

Referenced by Ogre::Mesh::ChunkMesh::ReadImpl(), Ogre::Mesh::ChunkSubmesh::ReadImpl(), and Ogre::Mesh::ChunkGeometryVertexBuffer::ReadImpl().

25  {
26  return std::unique_ptr<To>(static_cast<To*>(p.release()));
27 }

Here is the caller graph for this function: