blob: ce099749c2bce7f93ae62be2174770b192426a96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef PYTHONIC_OPERATOR_LT_HPP
#define PYTHONIC_OPERATOR_LT_HPP
#include "pythonic/include/operator_/lt.hpp"
#include "pythonic/utils/functor.hpp"
#include <cstring>
PYTHONIC_NS_BEGIN
namespace operator_
{
template <class A, class B>
auto lt(A &&a, B &&b) -> decltype(std::forward<A>(a) < std::forward<B>(b))
{
return std::forward<A>(a) < std::forward<B>(b);
}
inline bool lt(char const *self, char const *other)
{
return strcmp(self, other) < 0;
}
} // namespace operator_
PYTHONIC_NS_END
#endif
|