forked from kljohann/genpybind-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocstrings.h
36 lines (28 loc) · 914 Bytes
/
docstrings.h
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
27
28
29
30
31
32
33
34
35
36
#pragma once
#include "genpybind.h"
struct GENPYBIND(visible) Something {
/// \brief The default constructor!
/// More documentation here.
Something() = default;
/// \brief A member function!
/// More documentation here.
inline void do_something() {}
/// \brief A comparison operator!
/// More documentation here.
inline bool operator==(Something const &/*other*/) const { return true; }
/// \brief Inline friend!
/// More documentation here.
inline friend bool operator!=(Something const &/*lhs*/, Something const &/*rhs*/) {
return false;
}
inline friend bool operator<(Something const &lhs, Something const &rhs);
};
/// \brief Less than!
/// More documentation here.
inline bool operator<(Something const & /*lhs*/, Something const & /*rhs*/) {
return false;
}
/// \brief A free function!
/// More documentation here.
GENPYBIND(visible)
inline void some_function() {}