RCS file: /cvsroot/boost/boost/boost/parameter/keyword.hpp,v
retrieving revision 1.14
diff -d -u -r1.14 keyword.hpp
|
|
|
|
| 6 | 6 | #ifndef KEYWORD_050328_HPP |
| 7 | 7 | #define KEYWORD_050328_HPP |
| 8 | 8 | |
| | 9 | #include <boost/lambda/core.hpp> |
| 9 | 10 | #include <boost/parameter/aux_/unwrap_cv_reference.hpp> |
| 10 | 11 | #include <boost/parameter/aux_/tag.hpp> |
| 11 | 12 | #include <boost/parameter/aux_/default.hpp> |
| … |
… |
|
| 100 | 101 | } |
| 101 | 102 | }; |
| 102 | 103 | |
| | 104 | template <class Tag, class Default> |
| | 105 | aux::lazy_default<Tag, lambda::lambda_functor<Default> > |
| | 106 | operator||(keyword<Tag> const& key, |
| | 107 | lambda::lambda_functor<Default>& default_) |
| | 108 | { |
| | 109 | return key.operator||(default_); |
| | 110 | } |
| | 111 | |
| | 112 | template <class Tag, class Default> |
| | 113 | aux::lazy_default<Tag, lambda::lambda_functor<Default> > |
| | 114 | operator||(keyword<Tag> const& key, |
| | 115 | lambda::lambda_functor<Default> const& default_) |
| | 116 | { |
| | 117 | return key.operator||(default_); |
| | 118 | } |
| | 119 | |
| 103 | 120 | template <class Tag> |
| 104 | 121 | keyword<Tag> const keyword<Tag>::instance = {}; |
| 105 | 122 | |