mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Document our support for std::hash
This commit is contained in:
@@ -1515,5 +1515,20 @@ from_block_range( BlockIterator first, BlockIterator last, dynamic_bitset< Block
|
||||
|
||||
}
|
||||
|
||||
#if ! defined( BOOST_NO_CXX11_HDR_FUNCTIONAL ) && ! defined( BOOST_DYNAMIC_BITSET_NO_STD_HASH )
|
||||
# include <functional>
|
||||
namespace std {
|
||||
|
||||
//! Support for std::hash.
|
||||
//!
|
||||
//! You can exclude this support by defining the macro
|
||||
//! `BOOST_DYNAMIC_BITSET_NO_STD_HASH`.
|
||||
// -----------------------------------------------------------------------
|
||||
template< typename Block, typename Allocator >
|
||||
struct hash< boost::dynamic_bitset< Block, Allocator > >;
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
#include "boost/dynamic_bitset/impl/dynamic_bitset.ipp"
|
||||
#endif // include guard
|
||||
|
||||
@@ -1762,7 +1762,6 @@ dynamic_bitset< Block, Allocator >::bit_appender::get_count() const
|
||||
|
||||
// std::hash support
|
||||
#if ! defined( BOOST_NO_CXX11_HDR_FUNCTIONAL ) && ! defined( BOOST_DYNAMIC_BITSET_NO_STD_HASH )
|
||||
# include <functional>
|
||||
namespace std {
|
||||
template< typename Block, typename Allocator >
|
||||
struct hash< boost::dynamic_bitset< Block, Allocator > >
|
||||
|
||||
Reference in New Issue
Block a user