The [[likely]] attribute (C++20): this path is more likely.
Declared in <mrdocs/Metadata/Attribute/LikelyAttribute.hpp>
struct LikelyAttribute final
: AttributeCommonBase<AttributeKind::Likely>
| Name | Description |
|---|---|
AttributeCommonBase<AttributeKind::Likely> | CRTP base that ties a concrete attribute to a fixed AttributeKind. |
| Name | Description |
|---|---|
isAssume | [[assume(expression)]] (C++23) |
isCarriesDependency | [[carries_dependency]] (C++11) |
isDeprecated | [[deprecated]] / [[deprecated("reason")]] (C++14) |
isFallthrough | [[fallthrough]] (C++17) |
isIndeterminate | [[indeterminate]] (C++26) |
isLikely | [[likely]] (C++20) |
isMaybeUnused | [[maybe_unused]] (C++17) |
isNoUniqueAddress | [[no_unique_address]] (C++20) |
isNodiscard | [[nodiscard]] / [[nodiscard("reason")]] (C++17) |
isNoreturn | [[noreturn]] (C++11) |
isOther | An attribute mrdocs does not treat specially. |
isUnlikely | [[unlikely]] (C++20) |
| Name | Description |
|---|---|
kind_id | Static discriminator for the concrete attribute. |