summaryrefslogtreecommitdiff
path: root/boost/shared_container_iterator.hpp
diff options
context:
space:
mode:
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