// -*- C++ -*-
|
// -*- C++ -*-
|
|
|
// Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
|
// Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
|
//
|
//
|
// This file is part of the GNU ISO C++ Library. This library is free
|
// This file is part of the GNU ISO C++ Library. This library is free
|
// software; you can redistribute it and/or modify it under the terms
|
// software; you can redistribute it and/or modify it under the terms
|
// of the GNU General Public License as published by the Free Software
|
// of the GNU General Public License as published by the Free Software
|
// Foundation; either version 3, or (at your option) any later
|
// Foundation; either version 3, or (at your option) any later
|
// version.
|
// version.
|
|
|
// This library is distributed in the hope that it will be useful, but
|
// This library is distributed in the hope that it will be useful, but
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
// General Public License for more details.
|
// General Public License for more details.
|
|
|
// Under Section 7 of GPL version 3, you are granted additional
|
// Under Section 7 of GPL version 3, you are granted additional
|
// permissions described in the GCC Runtime Library Exception, version
|
// permissions described in the GCC Runtime Library Exception, version
|
// 3.1, as published by the Free Software Foundation.
|
// 3.1, as published by the Free Software Foundation.
|
|
|
// You should have received a copy of the GNU General Public License and
|
// You should have received a copy of the GNU General Public License and
|
// a copy of the GCC Runtime Library Exception along with this program;
|
// a copy of the GCC Runtime Library Exception along with this program;
|
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
// <http://www.gnu.org/licenses/>.
|
// <http://www.gnu.org/licenses/>.
|
|
|
// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
|
// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
|
|
|
// Permission to use, copy, modify, sell, and distribute this software
|
// Permission to use, copy, modify, sell, and distribute this software
|
// is hereby granted without fee, provided that the above copyright
|
// is hereby granted without fee, provided that the above copyright
|
// notice appears in all copies, and that both that copyright notice
|
// notice appears in all copies, and that both that copyright notice
|
// and this permission notice appear in supporting documentation. None
|
// and this permission notice appear in supporting documentation. None
|
// of the above authors, nor IBM Haifa Research Laboratories, make any
|
// of the above authors, nor IBM Haifa Research Laboratories, make any
|
// representation about the suitability of this software for any
|
// representation about the suitability of this software for any
|
// purpose. It is provided "as is" without express or implied
|
// purpose. It is provided "as is" without express or implied
|
// warranty.
|
// warranty.
|
|
|
/**
|
/**
|
* @file lu_map_.hpp
|
* @file lu_map_.hpp
|
* Contains a list update map.
|
* Contains a list update map.
|
*/
|
*/
|
|
|
#include <utility>
|
#include <utility>
|
#include <iterator>
|
#include <iterator>
|
#include <ext/pb_ds/detail/cond_dealtor.hpp>
|
#include <ext/pb_ds/detail/cond_dealtor.hpp>
|
#include <ext/pb_ds/tag_and_trait.hpp>
|
#include <ext/pb_ds/tag_and_trait.hpp>
|
#include <ext/pb_ds/detail/types_traits.hpp>
|
#include <ext/pb_ds/detail/types_traits.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/entry_metadata_base.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/entry_metadata_base.hpp>
|
#include <ext/pb_ds/exception.hpp>
|
#include <ext/pb_ds/exception.hpp>
|
#ifdef _GLIBCXX_DEBUG
|
#ifdef _GLIBCXX_DEBUG
|
#include <ext/pb_ds/detail/debug_map_base.hpp>
|
#include <ext/pb_ds/detail/debug_map_base.hpp>
|
#endif
|
#endif
|
#ifdef PB_DS_LU_MAP_TRACE_
|
#ifdef PB_DS_LU_MAP_TRACE_
|
#include <iostream>
|
#include <iostream>
|
#endif
|
#endif
|
#include <debug/debug.h>
|
#include <debug/debug.h>
|
|
|
namespace __gnu_pbds
|
namespace __gnu_pbds
|
{
|
{
|
namespace detail
|
namespace detail
|
{
|
{
|
#define PB_DS_CLASS_T_DEC \
|
#define PB_DS_CLASS_T_DEC \
|
template<typename Key, typename Mapped, class Eq_Fn, \
|
template<typename Key, typename Mapped, class Eq_Fn, \
|
class Allocator, class Update_Policy>
|
class Allocator, class Update_Policy>
|
|
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
#define PB_DS_CLASS_NAME lu_map_data_
|
#define PB_DS_CLASS_NAME lu_map_data_
|
#endif
|
#endif
|
|
|
#ifdef PB_DS_DATA_FALSE_INDICATOR
|
#ifdef PB_DS_DATA_FALSE_INDICATOR
|
#define PB_DS_CLASS_NAME lu_map_no_data_
|
#define PB_DS_CLASS_NAME lu_map_no_data_
|
#endif
|
#endif
|
|
|
#define PB_DS_CLASS_C_DEC \
|
#define PB_DS_CLASS_C_DEC \
|
PB_DS_CLASS_NAME<Key, Mapped, Eq_Fn, Allocator, Update_Policy>
|
PB_DS_CLASS_NAME<Key, Mapped, Eq_Fn, Allocator, Update_Policy>
|
|
|
#define PB_DS_TYPES_TRAITS_C_DEC \
|
#define PB_DS_TYPES_TRAITS_C_DEC \
|
types_traits<Key, Mapped, Allocator, false>
|
types_traits<Key, Mapped, Allocator, false>
|
|
|
#ifdef _GLIBCXX_DEBUG
|
#ifdef _GLIBCXX_DEBUG
|
#define PB_DS_DEBUG_MAP_BASE_C_DEC \
|
#define PB_DS_DEBUG_MAP_BASE_C_DEC \
|
debug_map_base<Key, Eq_Fn, \
|
debug_map_base<Key, Eq_Fn, \
|
typename Allocator::template rebind<Key>::other::const_reference>
|
typename Allocator::template rebind<Key>::other::const_reference>
|
#endif
|
#endif
|
|
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
#define PB_DS_V2F(X) (X).first
|
#define PB_DS_V2F(X) (X).first
|
#define PB_DS_V2S(X) (X).second
|
#define PB_DS_V2S(X) (X).second
|
#define PB_DS_EP2VP(X)& ((X)->m_value)
|
#define PB_DS_EP2VP(X)& ((X)->m_value)
|
#endif
|
#endif
|
|
|
#ifdef PB_DS_DATA_FALSE_INDICATOR
|
#ifdef PB_DS_DATA_FALSE_INDICATOR
|
#define PB_DS_V2F(X) (X)
|
#define PB_DS_V2F(X) (X)
|
#define PB_DS_V2S(X) Mapped_Data()
|
#define PB_DS_V2S(X) Mapped_Data()
|
#define PB_DS_EP2VP(X)& ((X)->m_value.first)
|
#define PB_DS_EP2VP(X)& ((X)->m_value.first)
|
#endif
|
#endif
|
|
|
/* Skip to the lu, my darling. */
|
/* Skip to the lu, my darling. */
|
// list-based (with updates) associative container.
|
// list-based (with updates) associative container.
|
template<typename Key,
|
template<typename Key,
|
typename Mapped,
|
typename Mapped,
|
class Eq_Fn,
|
class Eq_Fn,
|
class Allocator,
|
class Allocator,
|
class Update_Policy>
|
class Update_Policy>
|
class PB_DS_CLASS_NAME :
|
class PB_DS_CLASS_NAME :
|
#ifdef _GLIBCXX_DEBUG
|
#ifdef _GLIBCXX_DEBUG
|
protected PB_DS_DEBUG_MAP_BASE_C_DEC,
|
protected PB_DS_DEBUG_MAP_BASE_C_DEC,
|
#endif
|
#endif
|
public PB_DS_TYPES_TRAITS_C_DEC
|
public PB_DS_TYPES_TRAITS_C_DEC
|
{
|
{
|
private:
|
private:
|
typedef PB_DS_TYPES_TRAITS_C_DEC traits_base;
|
typedef PB_DS_TYPES_TRAITS_C_DEC traits_base;
|
|
|
struct entry
|
struct entry
|
: public lu_map_entry_metadata_base<typename Update_Policy::metadata_type>
|
: public lu_map_entry_metadata_base<typename Update_Policy::metadata_type>
|
{
|
{
|
typename traits_base::value_type m_value;
|
typename traits_base::value_type m_value;
|
typename Allocator::template rebind<entry>::other::pointer m_p_next;
|
typename Allocator::template rebind<entry>::other::pointer m_p_next;
|
};
|
};
|
|
|
typedef typename Allocator::template rebind<entry>::other entry_allocator;
|
typedef typename Allocator::template rebind<entry>::other entry_allocator;
|
typedef typename entry_allocator::pointer entry_pointer;
|
typedef typename entry_allocator::pointer entry_pointer;
|
typedef typename entry_allocator::const_pointer const_entry_pointer;
|
typedef typename entry_allocator::const_pointer const_entry_pointer;
|
typedef typename entry_allocator::reference entry_reference;
|
typedef typename entry_allocator::reference entry_reference;
|
typedef typename entry_allocator::const_reference const_entry_reference;
|
typedef typename entry_allocator::const_reference const_entry_reference;
|
|
|
typedef typename Allocator::template rebind<entry_pointer>::other entry_pointer_allocator;
|
typedef typename Allocator::template rebind<entry_pointer>::other entry_pointer_allocator;
|
typedef typename entry_pointer_allocator::pointer entry_pointer_array;
|
typedef typename entry_pointer_allocator::pointer entry_pointer_array;
|
|
|
typedef typename traits_base::value_type value_type_;
|
typedef typename traits_base::value_type value_type_;
|
typedef typename traits_base::pointer pointer_;
|
typedef typename traits_base::pointer pointer_;
|
typedef typename traits_base::const_pointer const_pointer_;
|
typedef typename traits_base::const_pointer const_pointer_;
|
typedef typename traits_base::reference reference_;
|
typedef typename traits_base::reference reference_;
|
typedef typename traits_base::const_reference const_reference_;
|
typedef typename traits_base::const_reference const_reference_;
|
|
|
#define PB_DS_GEN_POS entry_pointer
|
#define PB_DS_GEN_POS entry_pointer
|
|
|
#include <ext/pb_ds/detail/unordered_iterator/const_point_iterator.hpp>
|
#include <ext/pb_ds/detail/unordered_iterator/const_point_iterator.hpp>
|
#include <ext/pb_ds/detail/unordered_iterator/point_iterator.hpp>
|
#include <ext/pb_ds/detail/unordered_iterator/point_iterator.hpp>
|
#include <ext/pb_ds/detail/unordered_iterator/const_iterator.hpp>
|
#include <ext/pb_ds/detail/unordered_iterator/const_iterator.hpp>
|
#include <ext/pb_ds/detail/unordered_iterator/iterator.hpp>
|
#include <ext/pb_ds/detail/unordered_iterator/iterator.hpp>
|
|
|
#undef PB_DS_GEN_POS
|
#undef PB_DS_GEN_POS
|
|
|
|
|
#ifdef _GLIBCXX_DEBUG
|
#ifdef _GLIBCXX_DEBUG
|
typedef PB_DS_DEBUG_MAP_BASE_C_DEC debug_base;
|
typedef PB_DS_DEBUG_MAP_BASE_C_DEC debug_base;
|
#endif
|
#endif
|
|
|
typedef cond_dealtor<entry, Allocator> cond_dealtor_t;
|
typedef cond_dealtor<entry, Allocator> cond_dealtor_t;
|
|
|
public:
|
public:
|
typedef Allocator allocator_type;
|
typedef Allocator allocator_type;
|
typedef typename Allocator::size_type size_type;
|
typedef typename Allocator::size_type size_type;
|
typedef typename Allocator::difference_type difference_type;
|
typedef typename Allocator::difference_type difference_type;
|
typedef Eq_Fn eq_fn;
|
typedef Eq_Fn eq_fn;
|
typedef Update_Policy update_policy;
|
typedef Update_Policy update_policy;
|
typedef typename Update_Policy::metadata_type update_metadata;
|
typedef typename Update_Policy::metadata_type update_metadata;
|
typedef typename traits_base::key_type key_type;
|
typedef typename traits_base::key_type key_type;
|
typedef typename traits_base::key_pointer key_pointer;
|
typedef typename traits_base::key_pointer key_pointer;
|
typedef typename traits_base::const_key_pointer const_key_pointer;
|
typedef typename traits_base::const_key_pointer const_key_pointer;
|
typedef typename traits_base::key_reference key_reference;
|
typedef typename traits_base::key_reference key_reference;
|
typedef typename traits_base::const_key_reference const_key_reference;
|
typedef typename traits_base::const_key_reference const_key_reference;
|
typedef typename traits_base::mapped_type mapped_type;
|
typedef typename traits_base::mapped_type mapped_type;
|
typedef typename traits_base::mapped_pointer mapped_pointer;
|
typedef typename traits_base::mapped_pointer mapped_pointer;
|
typedef typename traits_base::const_mapped_pointer const_mapped_pointer;
|
typedef typename traits_base::const_mapped_pointer const_mapped_pointer;
|
typedef typename traits_base::mapped_reference mapped_reference;
|
typedef typename traits_base::mapped_reference mapped_reference;
|
typedef typename traits_base::const_mapped_reference const_mapped_reference;
|
typedef typename traits_base::const_mapped_reference const_mapped_reference;
|
typedef typename traits_base::value_type value_type;
|
typedef typename traits_base::value_type value_type;
|
typedef typename traits_base::pointer pointer;
|
typedef typename traits_base::pointer pointer;
|
typedef typename traits_base::const_pointer const_pointer;
|
typedef typename traits_base::const_pointer const_pointer;
|
typedef typename traits_base::reference reference;
|
typedef typename traits_base::reference reference;
|
typedef typename traits_base::const_reference const_reference;
|
typedef typename traits_base::const_reference const_reference;
|
|
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
typedef point_iterator_ point_iterator;
|
typedef point_iterator_ point_iterator;
|
#endif
|
#endif
|
|
|
#ifdef PB_DS_DATA_FALSE_INDICATOR
|
#ifdef PB_DS_DATA_FALSE_INDICATOR
|
typedef const_point_iterator_ point_iterator;
|
typedef const_point_iterator_ point_iterator;
|
#endif
|
#endif
|
|
|
typedef const_point_iterator_ const_point_iterator;
|
typedef const_point_iterator_ const_point_iterator;
|
|
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
typedef iterator_ iterator;
|
typedef iterator_ iterator;
|
#endif
|
#endif
|
|
|
#ifdef PB_DS_DATA_FALSE_INDICATOR
|
#ifdef PB_DS_DATA_FALSE_INDICATOR
|
typedef const_iterator_ iterator;
|
typedef const_iterator_ iterator;
|
#endif
|
#endif
|
|
|
typedef const_iterator_ const_iterator;
|
typedef const_iterator_ const_iterator;
|
|
|
public:
|
public:
|
PB_DS_CLASS_NAME();
|
PB_DS_CLASS_NAME();
|
|
|
PB_DS_CLASS_NAME(const PB_DS_CLASS_C_DEC&);
|
PB_DS_CLASS_NAME(const PB_DS_CLASS_C_DEC&);
|
|
|
virtual
|
virtual
|
~PB_DS_CLASS_NAME();
|
~PB_DS_CLASS_NAME();
|
|
|
template<typename It>
|
template<typename It>
|
PB_DS_CLASS_NAME(It first_it, It last_it);
|
PB_DS_CLASS_NAME(It first_it, It last_it);
|
|
|
void
|
void
|
swap(PB_DS_CLASS_C_DEC&);
|
swap(PB_DS_CLASS_C_DEC&);
|
|
|
inline size_type
|
inline size_type
|
size() const;
|
size() const;
|
|
|
inline size_type
|
inline size_type
|
max_size() const;
|
max_size() const;
|
|
|
inline bool
|
inline bool
|
empty() const;
|
empty() const;
|
|
|
inline mapped_reference
|
inline mapped_reference
|
operator[](const_key_reference r_key)
|
operator[](const_key_reference r_key)
|
{
|
{
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
_GLIBCXX_DEBUG_ONLY(assert_valid();)
|
_GLIBCXX_DEBUG_ONLY(assert_valid();)
|
return insert(std::make_pair(r_key, mapped_type())).first->second;
|
return insert(std::make_pair(r_key, mapped_type())).first->second;
|
#else
|
#else
|
insert(r_key);
|
insert(r_key);
|
return traits_base::s_null_mapped;
|
return traits_base::s_null_mapped;
|
#endif
|
#endif
|
}
|
}
|
|
|
inline std::pair<point_iterator, bool>
|
inline std::pair<point_iterator, bool>
|
insert(const_reference);
|
insert(const_reference);
|
|
|
inline point_iterator
|
inline point_iterator
|
find(const_key_reference r_key)
|
find(const_key_reference r_key)
|
{
|
{
|
_GLIBCXX_DEBUG_ONLY(assert_valid();)
|
_GLIBCXX_DEBUG_ONLY(assert_valid();)
|
entry_pointer p_e = find_imp(r_key);
|
entry_pointer p_e = find_imp(r_key);
|
return point_iterator(p_e == NULL ? NULL: &p_e->m_value);
|
return point_iterator(p_e == NULL ? NULL: &p_e->m_value);
|
}
|
}
|
|
|
inline const_point_iterator
|
inline const_point_iterator
|
find(const_key_reference r_key) const
|
find(const_key_reference r_key) const
|
{
|
{
|
_GLIBCXX_DEBUG_ONLY(assert_valid();)
|
_GLIBCXX_DEBUG_ONLY(assert_valid();)
|
entry_pointer p_e = find_imp(r_key);
|
entry_pointer p_e = find_imp(r_key);
|
return const_point_iterator(p_e == NULL ? NULL: &p_e->m_value);
|
return const_point_iterator(p_e == NULL ? NULL: &p_e->m_value);
|
}
|
}
|
|
|
inline bool
|
inline bool
|
erase(const_key_reference);
|
erase(const_key_reference);
|
|
|
template<typename Pred>
|
template<typename Pred>
|
inline size_type
|
inline size_type
|
erase_if(Pred);
|
erase_if(Pred);
|
|
|
void
|
void
|
clear();
|
clear();
|
|
|
inline iterator
|
inline iterator
|
begin();
|
begin();
|
|
|
inline const_iterator
|
inline const_iterator
|
begin() const;
|
begin() const;
|
|
|
inline iterator
|
inline iterator
|
end();
|
end();
|
|
|
inline const_iterator
|
inline const_iterator
|
end() const;
|
end() const;
|
|
|
#ifdef _GLIBCXX_DEBUG
|
#ifdef _GLIBCXX_DEBUG
|
void
|
void
|
assert_valid() const;
|
assert_valid() const;
|
#endif
|
#endif
|
|
|
#ifdef PB_DS_LU_MAP_TRACE_
|
#ifdef PB_DS_LU_MAP_TRACE_
|
void
|
void
|
trace() const;
|
trace() const;
|
#endif
|
#endif
|
|
|
protected:
|
protected:
|
|
|
template<typename It>
|
template<typename It>
|
void
|
void
|
copy_from_range(It, It);
|
copy_from_range(It, It);
|
|
|
private:
|
private:
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
#ifdef PB_DS_DATA_TRUE_INDICATOR
|
friend class iterator_;
|
friend class iterator_;
|
#endif
|
#endif
|
|
|
friend class const_iterator_;
|
friend class const_iterator_;
|
|
|
inline entry_pointer
|
inline entry_pointer
|
allocate_new_entry(const_reference, false_type);
|
allocate_new_entry(const_reference, false_type);
|
|
|
inline entry_pointer
|
inline entry_pointer
|
allocate_new_entry(const_reference, true_type);
|
allocate_new_entry(const_reference, true_type);
|
|
|
template<typename Metadata>
|
template<typename Metadata>
|
inline static void
|
inline static void
|
init_entry_metadata(entry_pointer, type_to_type<Metadata>);
|
init_entry_metadata(entry_pointer, type_to_type<Metadata>);
|
|
|
inline static void
|
inline static void
|
init_entry_metadata(entry_pointer, type_to_type<null_lu_metadata>);
|
init_entry_metadata(entry_pointer, type_to_type<null_lu_metadata>);
|
|
|
void
|
void
|
deallocate_all();
|
deallocate_all();
|
|
|
void
|
void
|
erase_next(entry_pointer);
|
erase_next(entry_pointer);
|
|
|
void
|
void
|
actual_erase_entry(entry_pointer);
|
actual_erase_entry(entry_pointer);
|
|
|
void
|
void
|
inc_it_state(const_pointer& r_p_value, entry_pointer& r_pos) const
|
inc_it_state(const_pointer& r_p_value, entry_pointer& r_pos) const
|
{
|
{
|
r_pos = r_pos->m_p_next;
|
r_pos = r_pos->m_p_next;
|
r_p_value = (r_pos == NULL) ? NULL : &r_pos->m_value;
|
r_p_value = (r_pos == NULL) ? NULL : &r_pos->m_value;
|
}
|
}
|
|
|
template<typename Metadata>
|
template<typename Metadata>
|
inline static bool
|
inline static bool
|
apply_update(entry_pointer, type_to_type<Metadata>);
|
apply_update(entry_pointer, type_to_type<Metadata>);
|
|
|
inline static bool
|
inline static bool
|
apply_update(entry_pointer, type_to_type<null_lu_metadata>);
|
apply_update(entry_pointer, type_to_type<null_lu_metadata>);
|
|
|
inline entry_pointer
|
inline entry_pointer
|
find_imp(const_key_reference) const;
|
find_imp(const_key_reference) const;
|
|
|
static entry_allocator s_entry_allocator;
|
static entry_allocator s_entry_allocator;
|
static Eq_Fn s_eq_fn;
|
static Eq_Fn s_eq_fn;
|
static Update_Policy s_update_policy;
|
static Update_Policy s_update_policy;
|
static type_to_type<update_metadata> s_metadata_type_indicator;
|
static type_to_type<update_metadata> s_metadata_type_indicator;
|
static null_lu_metadata s_null_lu_metadata;
|
static null_lu_metadata s_null_lu_metadata;
|
|
|
mutable entry_pointer m_p_l;
|
mutable entry_pointer m_p_l;
|
};
|
};
|
|
|
#include <ext/pb_ds/detail/list_update_map_/constructor_destructor_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/constructor_destructor_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/info_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/debug_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/debug_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/erase_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/erase_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/find_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/find_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/insert_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/insert_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/trace_fn_imps.hpp>
|
#include <ext/pb_ds/detail/list_update_map_/trace_fn_imps.hpp>
|
|
|
#undef PB_DS_CLASS_T_DEC
|
#undef PB_DS_CLASS_T_DEC
|
#undef PB_DS_CLASS_C_DEC
|
#undef PB_DS_CLASS_C_DEC
|
#undef PB_DS_TYPES_TRAITS_C_DEC
|
#undef PB_DS_TYPES_TRAITS_C_DEC
|
#undef PB_DS_DEBUG_MAP_BASE_C_DEC
|
#undef PB_DS_DEBUG_MAP_BASE_C_DEC
|
#undef PB_DS_CLASS_NAME
|
#undef PB_DS_CLASS_NAME
|
#undef PB_DS_V2F
|
#undef PB_DS_V2F
|
#undef PB_DS_EP2VP
|
#undef PB_DS_EP2VP
|
#undef PB_DS_V2S
|
#undef PB_DS_V2S
|
|
|
} // namespace detail
|
} // namespace detail
|
} // namespace __gnu_pbds
|
} // namespace __gnu_pbds
|
|
|