• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[/
2Copyright 2019 Glen Joseph Fernandes
3(glenjofe@gmail.com)
4
5Distributed under the Boost Software License, Version 1.0.
6(http://www.boost.org/LICENSE_1_0.txt)
7]
8
9[section:use_default use_default]
10
11[section Overview]
12
13The header <boost/core/use_default.hpp> provides the type `boost::use_default`
14which is used by other Boost libraries as a sentinel type in a templates to
15indicate defaults.
16
17[endsect]
18
19[section Example]
20
21```
22template<class Derived, class Base,
23   class Value = boost::use_default,
24   class CategoryOrTraversal = boost::use_default,
25   class Reference = boost::use_default,
26   class Difference = boost::use_default>
27class iterator_adaptor;
28
29template<class Value>
30class node_iterator
31    : public iterator_adaptor<node_iterator<Value>, Value*,
32        boost::use_default, boost::forward_traversal_tag>;
33```
34
35[endsect]
36
37[section Reference]
38
39```
40namespace boost {
41  struct use_default { };
42}
43```
44
45[endsect]
46
47[endsect]
48