C/C++
cpp_op.txt
Associated article: C++ & operator []=
Tags: C/C++
Published source code accompanying the article by Matthew Wilson in which he examines the C++ subscript operator operator [].
C++ & operator []=
by Matthew Wilson
Listing One
// Alternative op [] semantics, via argument decoration
template<class T>
struct inserter
{
inserter(T const &arg)
: argument(arg)
{}
T const &argument;
};
// "maker" function
template<class T&...


