C++: Hide global comparison operators for private Slice API

This commit is contained in:
Simon Hausmann 2021-06-21 13:01:37 +02:00 committed by Simon Hausmann
parent 7f8f1b3105
commit 07dd3ec82f

View file

@ -161,6 +161,7 @@ private:
#endif
};
#if !defined(DOXYGEN) // Hide these from Doxygen as Slice is private API
template<typename T>
bool operator==(cbindgen_private::Slice<T> a, cbindgen_private::Slice<T> b)
{
@ -173,5 +174,6 @@ bool operator!=(cbindgen_private::Slice<T> a, cbindgen_private::Slice<T> b)
{
return !(a != b);
}
#endif // !defined(DOXYGEN)
}