mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 18:32:27 -04:00
21 lines
476 B
C++
21 lines
476 B
C++
|
// Copyright David Abrahams 2004. Distributed under the Boost
|
||
|
// Software License, Version 1.0. (See accompanying
|
||
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||
|
|
||
|
#include <boost/iterator/iterator_adaptor.hpp>
|
||
|
#include <utility>
|
||
|
|
||
|
struct my_iter : boost::iterator_adaptor<my_iter, std::pair<int,int> const*>
|
||
|
{
|
||
|
my_iter(std::pair<int,int> const*);
|
||
|
my_iter();
|
||
|
};
|
||
|
|
||
|
std::pair<int,int> const x(1,1);
|
||
|
my_iter p(&x);
|
||
|
|
||
|
void test()
|
||
|
{
|
||
|
p->first = 3;
|
||
|
}
|