CVB++ 15.0
Loading...
Searching...
No Matches
ConstRefValueSetter< CRefValue > Struct Template Reference

Helper class for setting the pointers, as friending template functions is not really stable. More...

#include <block_helper_ref_value.hpp>

Related Symbols

(Note that these are not member symbols.)

template<size_t I, class Ty, size_t K, std::enable_if_t< less< I, K >::value, int > = 0>
static CVB_FORCE_INLINE void set (CRefValue< Ty, K > &refVal, const Ty *val) noexcept
 Set's the I-th pointer in the RefValue<T,K> refVal.
 

Detailed Description

template<template< class, size_t > class CRefValue>
struct Cvb::CVB_BEGIN_INLINE_NS::ConstRefValueSetter< CRefValue >

Helper class for setting the pointers, as friending template functions is not really stable.

Friends And Related Symbol Documentation

◆ set()

template<template< class, size_t > class CRefValue>
template<size_t I, class Ty, size_t K, std::enable_if_t< less< I, K >::value, int > = 0>
static CVB_FORCE_INLINE void set ( CRefValue< Ty, K > & refVal,
const Ty * val )
related

Set's the I-th pointer in the RefValue<T,K> refVal.

See also
Block, Visit
Precondition
I < K
Template Parameters
IThe index of the pointer to set.
Parameters
refValThe RefValue<T,K> to set the I-th pointer in.
valThe pointer to be set as the I-th element of refVal.