mirror of
https://github.com/boostorg/graph.git
synced 2026-01-30 07:52:10 +00:00
new file
[SVN r9535]
This commit is contained in:
35
include/boost/graph/detail/intset.hpp
Normal file
35
include/boost/graph/detail/intset.hpp
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
|
||||
// (C) Copyright Jeremy Siek 2001. Permission to copy, use, modify,
|
||||
// sell and distribute this software is granted provided this
|
||||
// copyright notice appears in all copies. This software is provided
|
||||
// "as is" without express or implied warranty, and with no claim as
|
||||
// to its suitability for any purpose.
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
// UNDER CONSTRUCTION
|
||||
|
||||
namespace boost {
|
||||
|
||||
namespace detail {
|
||||
|
||||
template <typename SizeType,
|
||||
typename Allocator = std::allocator<SizeType> >
|
||||
class intset {
|
||||
public:
|
||||
intset(SizeType n) : m_index(n), m_value(n) {
|
||||
|
||||
}
|
||||
|
||||
private:
|
||||
std::vector<SizeType, Allocator> m_index;
|
||||
std::vector<SizeType, Allocator> m_value;
|
||||
size_type m_next;
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // namespace detail
|
||||
|
||||
} // namespace boost
|
||||
Reference in New Issue
Block a user