diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-19 08:40:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-19 09:55:18 +0000 |
commit | 8f2522f931df9f1f24ef7016ee64d75fd23af000 (patch) | |
tree | 59ad157d1683dc311e8688c5b4193754f0e178b8 /include/oox/helper/refmap.hxx | |
parent | c7efcb1340ceee35fe3b8ffd9ed86b8cae57d9ce (diff) |
boost->std
Change-Id: Icae6b6f07ad8dbd287fdfc689739187883a07775
Diffstat (limited to 'include/oox/helper/refmap.hxx')
-rw-r--r-- | include/oox/helper/refmap.hxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/oox/helper/refmap.hxx b/include/oox/helper/refmap.hxx index d2bcd6215536..e3efbfa4f961 100644 --- a/include/oox/helper/refmap.hxx +++ b/include/oox/helper/refmap.hxx @@ -20,10 +20,11 @@ #ifndef INCLUDED_OOX_HELPER_REFMAP_HXX #define INCLUDED_OOX_HELPER_REFMAP_HXX +#include <sal/types.h> +#include <algorithm> #include <map> +#include <memory> #include <boost/bind.hpp> -#include <boost/shared_ptr.hpp> -#include <sal/types.h> namespace oox { @@ -32,15 +33,15 @@ namespace oox { /** Template for a map of ref-counted objects with additional accessor functions. An instance of the class RefMap< Type > stores elements of the type - ::boost::shared_ptr< Type >. The new accessor functions has() and get() + std::shared_ptr< Type >. The new accessor functions has() and get() work correctly for nonexisting keys, there is no need to check the passed key before. */ -template< typename KeyType, typename ObjType, typename CompType = ::std::less< KeyType > > -class RefMap : public ::std::map< KeyType, ::boost::shared_ptr< ObjType >, CompType > +template< typename KeyType, typename ObjType, typename CompType = std::less< KeyType > > +class RefMap : public std::map< KeyType, std::shared_ptr< ObjType >, CompType > { public: - typedef ::std::map< KeyType, ::boost::shared_ptr< ObjType >, CompType > container_type; + typedef std::map< KeyType, std::shared_ptr< ObjType >, CompType > container_type; typedef typename container_type::key_type key_type; typedef typename container_type::mapped_type mapped_type; typedef typename container_type::value_type value_type; @@ -68,7 +69,7 @@ public: template< typename FunctorType > void forEach( const FunctorType& rFunctor ) const { - ::std::for_each( this->begin(), this->end(), ForEachFunctor< FunctorType >( rFunctor ) ); + std::for_each( this->begin(), this->end(), ForEachFunctor< FunctorType >( rFunctor ) ); } /** Calls the passed member function of ObjType on every contained object, @@ -117,7 +118,7 @@ public: template< typename FunctorType > void forEachWithKey( const FunctorType& rFunctor ) const { - ::std::for_each( this->begin(), this->end(), ForEachFunctorWithKey< FunctorType >( rFunctor ) ); + std::for_each( this->begin(), this->end(), ForEachFunctorWithKey< FunctorType >( rFunctor ) ); } /** Calls the passed member function of ObjType on every contained object. |