};
/**
- * AnyCast helper functions ( replicates boost functionality, but without exception generation )
+ * AnyCast helper functions
*/
/**
*
* @return Pointer to the Type held
*/
-template<typename Type>inline Type* AnyCast( Any* any )
+template<typename Type>
+inline Type* AnyCast( Any* any )
{
return any->GetPointer<Type>();
}
*
* @return const Pointer to the Type held
*/
-template<typename Type>inline const Type* AnyCast( const Any* any )
+template<typename Type>
+inline const Type* AnyCast( const Any* any )
{
return any->GetPointer<Type>();
}
*
* @return Type value of type Type
*/
-template<typename Type>inline Type AnyCast( Any& any )
+template<typename Type>
+inline Type AnyCast( Any& any )
{
return any.Get<Type>();
}
*
* @return Type value of type Type
*/
-template<typename Type>inline Type AnyCast( const Any& any )
+template<typename Type>
+inline Type AnyCast( const Any& any )
{
return any.Get<Type>();
}
*
* @return A reference to the Type value of type Type
*/
-template<typename Type>inline Type& AnyCastReference( Any& any )
+template<typename Type>
+inline Type& AnyCastReference( Any& any )
{
return any.Get<Type>();
}
*
* @return A const reference to the Type value of type Type
*/
-template<typename Type>inline const Type& AnyCastReference( const Any& any )
+template<typename Type>
+inline const Type& AnyCastReference( const Any& any )
{
return any.Get<Type>();
}