22 #ifndef BOOST_PYTHON_INDEXING_VALUE_TRAITS_HPP
23 #define BOOST_PYTHON_INDEXING_VALUE_TRAITS_HPP
25 #include <boost/config.hpp>
26 #include <boost/shared_ptr.hpp>
29 namespace boost {
namespace python {
namespace indexing {
41 BOOST_STATIC_CONSTANT (
bool, equality_comparable =
true);
42 typedef std::equal_to<T> equal_to;
44 BOOST_STATIC_CONSTANT (
bool, less_than_comparable =
true);
45 typedef std::less<T> less;
48 template<
typename PythonClass,
typename Policy>
49 static void visit_container_class (PythonClass &, Policy
const &) { }
53 template <
typename Ptr>
57 struct less : std::binary_function<Ptr, Ptr, bool> {
58 bool operator() (Ptr
const &p1, Ptr
const &p2)
const {
63 struct equal_to : std::binary_function<Ptr, Ptr, bool> {
64 bool operator() (Ptr
const &p1, Ptr
const &p2)
const {
77 #if !defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
87 #endif // BOOST_PYTHON_INDEXING_VALUE_TRAITS_HPP
Definition: value_traits.hpp:34
Definition: value_traits.hpp:40
Definition: python_CEGUI.h:9
Definition: value_traits.hpp:54
Definition: value_traits.hpp:57
Definition: value_traits.hpp:63