MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / cast

Method cast

include/behaviortree_cpp/contrib/any.hpp:379–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377 /// Casts (with no type_info checks) the storage pointer as const T*.
378 template<typename T>
379 const T* cast() const noexcept
380 {
381 return requires_allocation<typename std::decay<T>::type>::value?
382 reinterpret_cast<const T*>(storage.dynamic) :
383 reinterpret_cast<const T*>(&storage.stack);
384 }
385
386 /// Casts (with no type_info checks) the storage pointer as T*.
387 template<typename T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected