// (C) Copyright 2008-2009 SDML (www.sdml.info) // // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // Copyright Andrew Sutton 2007 // // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_SETS_DYNAMIC_BITSET_INTERSECTION_HPP #define BOOST_SETS_DYNAMIC_BITSET_INTERSECTION_HPP #include namespace boost { namespace sets { // For bitsets, this is just a bitwise and operation. template inline void intersection(const dynamic_bitset& a, const dynamic_bitset& b, dynamic_bitset& result) { result = a & b; } // For bitsets, this is just a bitwise and operation. template inline dynamic_bitset intersection(const dynamic_bitset& a, const dynamic_bitset& b) { return a & b; } // For bitsets, this is just a bitwise and operation. template inline dynamic_bitset& intersection_inplace(dynamic_bitset& a, const dynamic_bitset& b) { return a &= b; } } /* namespace sets */ } /* namespace boost */ #endif