omni::graph::core::has_setContext

Defined in omni/graph/core/Handle.h

template<class NodeTypeClass>
using omni::graph::core::has_setContext = typename std::is_same<void, decltype(std::declval<NodeTypeClass&>().setContext(std::declval<const GraphContextObj&>()))>::value_type

SFINAE function that will call setContext on an object if it exists as “void setContext(GraphContextObj&)”.

This allows setting a context in the wrapper functions to percolate down to the member implementations when appropriate.

Usage: OptionalMethod::setContext<ClassType>(classMember, context);