H
Hicham Mouline
Hello,
namespace NS1 { namespace NS2 {
template <typename T1, typename T2>
class C {
public:
typedef T1::xType xType;
typedef T1::yType yType;
....
private:
typedef std:
air< xType, yType> EntryType;
boost::array< EntryType , size > ContainerType;
....
};
....
}}
I need to use std::lower_bound and sorting algorithms on my ContainerType.
Where (which namespace) and how can I define the operator< comparing 2
EntryType
for the std:: algorithms to use that operator?
Note I use these std::algorithms only in member functions of the C template.
So I wish to define the operator< in a way that is specific and visible only
to C template.
best regards,
namespace NS1 { namespace NS2 {
template <typename T1, typename T2>
class C {
public:
typedef T1::xType xType;
typedef T1::yType yType;
....
private:
typedef std:
boost::array< EntryType , size > ContainerType;
....
};
....
}}
I need to use std::lower_bound and sorting algorithms on my ContainerType.
Where (which namespace) and how can I define the operator< comparing 2
EntryType
for the std:: algorithms to use that operator?
Note I use these std::algorithms only in member functions of the C template.
So I wish to define the operator< in a way that is specific and visible only
to C template.
best regards,