blob: 6db25df07767a3a8b6f109aea824d71424fd988f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (C) by Josh Blum. See LICENSE.txt for licensing information.
#ifndef INCLUDED_LIBGRAS_IMPL_BITSET_HPP
#define INCLUDED_LIBGRAS_IMPL_BITSET_HPP
#include <gras/gras.hpp>
#include <boost/dynamic_bitset.hpp>
namespace gras
{
//! Its just dynamic bitset w/ the handle all() routine
struct BitSet : boost::dynamic_bitset<>
{
GRAS_FORCE_INLINE bool all(void) const
{
return this->count() == this->size();
}
};
} //namespace gras
#endif /*INCLUDED_LIBGRAS_IMPL_BITSET_HPP*/
|