Home
last modified time | relevance | path

Searched refs:PYBIND11_UNARY_OPERATOR (Results 1 – 1 of 1) sorted by relevance

/external/python/pybind11/include/pybind11/
Doperators.h111 #define PYBIND11_UNARY_OPERATOR(id, op, expr) \ macro
148 PYBIND11_UNARY_OPERATOR(neg, operator-, -l)
149 PYBIND11_UNARY_OPERATOR(pos, operator+, +l)
150 PYBIND11_UNARY_OPERATOR(abs, abs, std::abs(l))
151 PYBIND11_UNARY_OPERATOR(hash, hash, std::hash<L>()(l))
152 PYBIND11_UNARY_OPERATOR(invert, operator~, (~l))
153 PYBIND11_UNARY_OPERATOR(bool, operator!, !!l)
154 PYBIND11_UNARY_OPERATOR(int, int_, (int) l)
155 PYBIND11_UNARY_OPERATOR(float, float_, (double) l)
159 #undef PYBIND11_UNARY_OPERATOR