Context

template<class native_context_type, class = typename std::enable_if<is_context_supported<native_context_type>()>::type>
context create_context(native_context_type &&native_context)

Creates a new context from @native_contex_type.

Return

context object

Parameters
  • native_context: the existing handle of context

context create_context()