Intel® C++ Compiler 16.0 User and Reference Guide

ConstProxy

ConstProxy object provides access to a specific constant primitive, primitive data member, or nested data member within a primitive for an element in a container.

Description

const_accessor [index] or a ConstProxy object’s Data Member Interfaces return ConstProxy objects. That ConstProxy object represents the constant primitive, primitive data member, or nested data member within a primitive for an element in a container. The ConstProxy object has the following features:

Member Type

Description

typedef implementation-defined value_type

The type of the data the ConstProxy is representing

Member

Description

operator value_type const () const;

Returns: exports a copy of the ConstProxy’s value.

NOTE: constant return value prevents rvalue assignment for structs offering some protection against code that expected a modifiable reference.

auto name_of_values_data_member_1()const;

Returns: ConstProxy instance representing the 1st data member of the value_type

NOTE: actual method name is the name of the value_type’s 1st data member

auto name_of_values_data_member_2()const;

Returns: ConstProxy instance representing the 2nd data member of the value_type.

NOTE: actual method name is the name of the value_type’s 2nd data member.

auto name_of_values_data_member_...()const;

Returns: ConstProxy instance representing the ...th data member of the value_type.

NOTE: actual method name is the name of the value_type’s ...th data member.

auto name_of_values_data_member_N()const;

Returns: ConstProxy instance representing the Nth data member of the value_type.

NOTE: actual method name is the name of the value_type’s Nth data member