mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Ensure all #includes are at the top of the source file
This commit is contained in:
@@ -28,6 +28,21 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#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
|
||||
|
||||
namespace boost {
|
||||
|
||||
//! The `dynamic_bitset` template represents a set of bits.
|
||||
@@ -1515,20 +1530,5 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user