summaryrefslogtreecommitdiff
path: root/boost/shared_container_iterator.hpp
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2014-12-11 18:55:56 +0900
committerChanho Park <chanho61.park@samsung.com>2014-12-11 18:55:56 +0900
commit08c1e93fa36a49f49325a07fe91ff92c964c2b6c (patch)
tree7a7053ceb8874b28ec4b868d4c49b500008a102e /boost/shared_container_iterator.hpp
parentbb4dd8289b351fae6b55e303f189127a394a1edd (diff)
downloadboost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.gz
boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.bz2
boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.zip
Imported Upstream version 1.57.0upstream/1.57.0
Diffstat (limited to 'boost/shared_container_iterator.hpp')
-rw-r--r--boost/shared_container_iterator.hpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/boost/shared_container_iterator.hpp b/boost/shared_container_iterator.hpp
index 7d8ecd3e51..e803bd654e 100644
--- a/boost/shared_container_iterator.hpp
+++ b/boost/shared_container_iterator.hpp
@@ -13,6 +13,7 @@
#include <utility>
namespace boost {
+namespace iterators {
template <typename Container>
class shared_container_iterator : public iterator_adaptor<
@@ -37,7 +38,7 @@ public:
};
template <typename Container>
-shared_container_iterator<Container>
+inline shared_container_iterator<Container>
make_shared_container_iterator(typename Container::iterator iter,
boost::shared_ptr<Container> const& container) {
typedef shared_container_iterator<Container> iterator;
@@ -47,7 +48,7 @@ make_shared_container_iterator(typename Container::iterator iter,
template <typename Container>
-std::pair<
+inline std::pair<
shared_container_iterator<Container>,
shared_container_iterator<Container> >
make_shared_container_range(boost::shared_ptr<Container> const& container) {
@@ -57,6 +58,12 @@ make_shared_container_range(boost::shared_ptr<Container> const& container) {
make_shared_container_iterator(container->end(),container));
}
+} // namespace iterators
+
+using iterators::shared_container_iterator;
+using iterators::make_shared_container_iterator;
+using iterators::make_shared_container_range;
} // namespace boost
+
#endif // SHARED_CONTAINER_ITERATOR_RG08102002_HPP