mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
C++: Hide global comparison operators for private Slice API
This commit is contained in:
parent
7f8f1b3105
commit
07dd3ec82f
1 changed files with 2 additions and 0 deletions
|
@ -161,6 +161,7 @@ private:
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if !defined(DOXYGEN) // Hide these from Doxygen as Slice is private API
|
||||||
template<typename T>
|
template<typename T>
|
||||||
bool operator==(cbindgen_private::Slice<T> a, cbindgen_private::Slice<T> b)
|
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);
|
return !(a != b);
|
||||||
}
|
}
|
||||||
|
#endif // !defined(DOXYGEN)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue