mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Doxygen: Fix some Doxygen issues
This commit is contained in:
parent
242e93e41e
commit
ff835be2ac
25 changed files with 170 additions and 59 deletions
|
|
@ -30,7 +30,9 @@ constexpr auto nullopt = std::nullopt;
|
|||
// link time code generation.
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4702)
|
||||
|
||||
#ifndef DOXYGEN
|
||||
#define JUCE_OPTIONAL_OPERATORS X(==) X(!=) X(<) X(<=) X(>) X(>=)
|
||||
#endif
|
||||
|
||||
/**
|
||||
A simple optional type.
|
||||
|
|
@ -161,6 +163,7 @@ Optional<std::decay_t<Value>> makeOptional (Value&& v)
|
|||
return std::forward<Value> (v);
|
||||
}
|
||||
|
||||
#ifndef DOXYGEN
|
||||
#define X(op) \
|
||||
template <typename T, typename U> bool operator op (const Optional<T>& lhs, const Optional<U>& rhs) { return lhs.opt op rhs.opt; } \
|
||||
template <typename T> bool operator op (const Optional<T>& lhs, Nullopt rhs) { return lhs.opt op rhs; } \
|
||||
|
|
@ -171,7 +174,7 @@ Optional<std::decay_t<Value>> makeOptional (Value&& v)
|
|||
JUCE_OPTIONAL_OPERATORS
|
||||
|
||||
#undef X
|
||||
|
||||
#undef JUCE_OPTIONAL_OPERATORS
|
||||
#endif
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -88,6 +88,8 @@ namespace detail
|
|||
or other similar container.
|
||||
|
||||
This is a bit like std::span from C++20, but with a more limited interface.
|
||||
|
||||
@tags{Core}
|
||||
*/
|
||||
template <typename Value, size_t Extent = dynamicExtent>
|
||||
class Span : private detail::NumBase<Extent> // for empty-base optimisation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue