StdMeshLoaderBinaryChunks.cpp File Reference
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

◆ static_unique_cast()

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

Definition at line 21 of file StdMeshLoaderBinaryChunks.cpp.

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

21  {
22  return std::unique_ptr<To>(static_cast<To*>(p.release()));
23 }
Here is the caller graph for this function: