= Reference :mrdocs: == Namespaces [cols=1] |=== | Name | link:#clang[`clang`] |=== == link:#clang[clang] namespace === Namespaces [cols=1] |=== | Name | link:#clang-mrdocs[`mrdocs`] |=== == link:#clang-mrdocs[clang::mrdocs] namespace === Namespaces [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc[`doc`] | Javadoc related types and functions. | link:#clang-mrdocs-dom[`dom`] | Objects representing JSON‐like values. | link:#clang-mrdocs-files[`files`] | | link:#clang-mrdocs-helpers[`helpers`] | | link:#clang-mrdocs-js[`js`] | | link:#clang-mrdocs-lua[`lua`] | | link:#clang-mrdocs-report[`report`] | |=== === Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-AnyFileVisitor[`AnyFileVisitor`] | | link:#clang-mrdocs-ArrayTypeInfo[`ArrayTypeInfo`] | | link:#clang-mrdocs-AutoTypeInfo[`AutoTypeInfo`] | | link:#clang-mrdocs-BadExpectedAccess-0d[`BadExpectedAccess`] | | link:#clang-mrdocs-BadExpectedAccess-01[`BadExpectedAccess<void>`] | | link:#clang-mrdocs-BaseInfo[`BaseInfo`] | Metadata for a direct base. | link:#clang-mrdocs-ConceptInfo[`ConceptInfo`] | Info for concepts. | link:#clang-mrdocs-Config[`Config`] | Configuration used to generate the Corpus and Docs | link:#clang-mrdocs-ConstantExprInfo[`ConstantExprInfo`] | Represents an expression with a (possibly known) value | link:#clang-mrdocs-Corpus[`Corpus`] | The collection of declarations in extracted form. | link:#clang-mrdocs-DecltypeTypeInfo[`DecltypeTypeInfo`] | | link:#clang-mrdocs-DefaultEmptyPredicate[`DefaultEmptyPredicate`] | The default empty predicate. | link:#clang-mrdocs-DomCorpus[`DomCorpus`] | Front‐end factory for producing Dom nodes. | link:#clang-mrdocs-EnumConstantInfo[`EnumConstantInfo`] | Info for enum constants. | link:#clang-mrdocs-EnumInfo[`EnumInfo`] | | link:#clang-mrdocs-Error[`Error`] | Holds the description of an error, or success. | link:#clang-mrdocs-Exception[`Exception`] | Type of all exceptions thrown by the API. | link:#clang-mrdocs-ExecutorGroup[`ExecutorGroup`] | A set of execution agents for performing concurrent work. | link:#clang-mrdocs-ExecutorGroupBase[`ExecutorGroupBase`] | | link:#clang-mrdocs-Expected-03[`Expected`] | A container holding an error or a value. | link:#clang-mrdocs-Expected-0c[`Expected<T, E>`] | | link:#clang-mrdocs-ExplicitInfo[`ExplicitInfo`] | | link:#clang-mrdocs-ExprInfo[`ExprInfo`] | Represents an expression | link:#clang-mrdocs-FormatString[`FormatString`] | A format string with source location. | link:#clang-mrdocs-FriendInfo[`FriendInfo`] | Info for friend declarations. | link:#clang-mrdocs-FunctionInfo[`FunctionInfo`] | | link:#clang-mrdocs-FunctionTypeInfo[`FunctionTypeInfo`] | | link:#clang-mrdocs-Generator[`Generator`] | Base class for documentation generators. | link:#clang-mrdocs-Generators[`Generators`] | A dynamic list of Generator | link:#clang-mrdocs-GlobPattern[`GlobPattern`] | A glob pattern matcher | link:#clang-mrdocs-GuideInfo[`GuideInfo`] | Info for deduction guides. | link:#clang-mrdocs-Handlebars[`Handlebars`] | A handlebars environment | link:#clang-mrdocs-HandlebarsError[`HandlebarsError`] | An error thrown or returned by Handlebars | link:#clang-mrdocs-HandlebarsOptions[`HandlebarsOptions`] | Options for handlebars | link:#clang-mrdocs-Info[`Info`] | Base class with common properties of all symbols | link:#clang-mrdocs-InfoCommonBase-08[`InfoCommonBase`] | Base class for providing variant discriminator functions. | link:#clang-mrdocs-IsTArg-01[`IsTArg`] | | link:#clang-mrdocs-Javadoc[`Javadoc`] | A processed Doxygen‐style comment attached to a declaration. | link:#clang-mrdocs-LValueReferenceTypeInfo[`LValueReferenceTypeInfo`] | | link:#clang-mrdocs-Location[`Location`] | | link:#clang-mrdocs-LocationEmptyPredicate[`LocationEmptyPredicate`] | | link:#clang-mrdocs-MemberPointerTypeInfo[`MemberPointerTypeInfo`] | | link:#clang-mrdocs-NameInfo[`NameInfo`] | Represents a name for a named `TypeInfo` | link:#clang-mrdocs-NamedTypeInfo[`NamedTypeInfo`] | | link:#clang-mrdocs-NamespaceAliasInfo[`NamespaceAliasInfo`] | Info for namespace aliases. | link:#clang-mrdocs-NamespaceInfo[`NamespaceInfo`] | Describes a namespace. | link:#clang-mrdocs-NamespaceTranche[`NamespaceTranche`] | The members of a Namespace | link:#clang-mrdocs-NoexceptInfo[`NoexceptInfo`] | | link:#clang-mrdocs-NonTypeTArg[`NonTypeTArg`] | | link:#clang-mrdocs-NonTypeTParam[`NonTypeTParam`] | | link:#clang-mrdocs-Optional[`Optional`] | A compact optional. | link:#clang-mrdocs-OutputRef[`OutputRef`] | Reference to output stream used by handlebars | link:#clang-mrdocs-OverloadsInfo[`OverloadsInfo`] | Represents a set of function overloads. | link:#clang-mrdocs-Param[`Param`] | Represents a single function parameter | link:#clang-mrdocs-ParseResult[`ParseResult`] | The result of a parse operation. | link:#clang-mrdocs-PathGlobPattern[`PathGlobPattern`] | A glob pattern matcher for paths | link:#clang-mrdocs-PointerTypeInfo[`PointerTypeInfo`] | | link:#clang-mrdocs-Polymorphic[`Polymorphic`] | A polymorphic value‐type. | link:#clang-mrdocs-RValueReferenceTypeInfo[`RValueReferenceTypeInfo`] | | link:#clang-mrdocs-RangeFor-07[`RangeFor`] | Range to help range‐for loops identify first and last. | link:#clang-mrdocs-RecordInfo[`RecordInfo`] | Metadata for struct, class, or union. | link:#clang-mrdocs-RecordInterface[`RecordInterface`] | The aggregated interface for a given struct, class, or union. | link:#clang-mrdocs-RecordTranche[`RecordTranche`] | A group of members that have the same access specifier. | link:#clang-mrdocs-ReferenceDirectories[`ReferenceDirectories`] | Reference directories used to resolve paths | link:#clang-mrdocs-ScopeExit-04[`ScopeExit`] | | link:#clang-mrdocs-ScopeExitRestore-05[`ScopeExitRestore`] | | link:#clang-mrdocs-SourceInfo[`SourceInfo`] | Stores source information for a declaration. | link:#clang-mrdocs-SourceLocation[`SourceLocation`] | A source location with filename prettification. | link:#clang-mrdocs-SpecializationNameInfo[`SpecializationNameInfo`] | Represents a (possibly qualified) symbol name with template arguments. | link:#clang-mrdocs-StringHash[`StringHash`] | | link:#clang-mrdocs-SymbolGlobPattern[`SymbolGlobPattern`] | A glob pattern matcher for C++ symbols | link:#clang-mrdocs-SymbolID[`SymbolID`] | A unique identifier for a symbol. | link:#clang-mrdocs-TArg[`TArg`] | | link:#clang-mrdocs-TParam[`TParam`] | | link:#clang-mrdocs-TParamCommonBase-00[`TParamCommonBase`] | | link:#clang-mrdocs-TaskGroup[`TaskGroup`] | A subset of possible work in a thread pool. | link:#clang-mrdocs-TemplateInfo[`TemplateInfo`] | Information pertaining to templates and specializations thereof. | link:#clang-mrdocs-TemplateTArg[`TemplateTArg`] | | link:#clang-mrdocs-TemplateTParam[`TemplateTParam`] | | link:#clang-mrdocs-ThreadPool[`ThreadPool`] | A pool of threads for executing work concurrently. | link:#clang-mrdocs-TypeInfo[`TypeInfo`] | A possibly qualified type. | link:#clang-mrdocs-TypeInfoCommonBase-0a[`TypeInfoCommonBase`] | | link:#clang-mrdocs-TypeTArg[`TypeTArg`] | | link:#clang-mrdocs-TypeTParam[`TypeTParam`] | | link:#clang-mrdocs-TypedefInfo[`TypedefInfo`] | | link:#clang-mrdocs-Unexpected-02[`Unexpected`] | | link:#clang-mrdocs-UsingInfo[`UsingInfo`] | Info for using declarations. | link:#clang-mrdocs-VariableInfo[`VariableInfo`] | A variable. | link:#clang-mrdocs-Visitor[`Visitor`] | A visitor for a type | link:#clang-mrdocs-add_const_from[`add_const_from`] | | link:#clang-mrdocs-add_cv_from[`add_cv_from`] | | link:#clang-mrdocs-add_cvref_from[`add_cvref_from`] | | link:#clang-mrdocs-add_lvalue_reference_from[`add_lvalue_reference_from`] | | link:#clang-mrdocs-add_reference_from[`add_reference_from`] | | link:#clang-mrdocs-add_rvalue_reference_from[`add_rvalue_reference_from`] | | link:#clang-mrdocs-add_volatile_from[`add_volatile_from`] | | link:#clang-mrdocs-any_callable-06[`any_callable`] | A movable, type‐erased function object. | link:#clang-mrdocs-any_callable-07[`any_callable<R(Args...)>`] | | link:#clang-mrdocs-make_dependent[`make_dependent`] | | link:#clang-mrdocs-unexpect_t[`unexpect_t`] | | link:#clang-mrdocs-unlock_guard[`unlock_guard`] | A scoped guard which unlocks a mutex. | link:#clang-mrdocs-OptionalLocation[`OptionalLocation`] | Like std::optional<Location> | link:#clang-mrdocs-UnorderedStringMap[`UnorderedStringMap`] | | link:#clang-mrdocs-UnorderedStringMultiMap[`UnorderedStringMultiMap`] | | link:#clang-mrdocs-add_const_from_t[`add_const_from_t`] | | link:#clang-mrdocs-add_cv_from_t[`add_cv_from_t`] | | link:#clang-mrdocs-add_cvref_from_t[`add_cvref_from_t`] | | link:#clang-mrdocs-add_lvalue_reference_from_t[`add_lvalue_reference_from_t`] | | link:#clang-mrdocs-add_reference_from_t[`add_reference_from_t`] | | link:#clang-mrdocs-add_rvalue_reference_from_t[`add_rvalue_reference_from_t`] | | link:#clang-mrdocs-add_volatile_from_t[`add_volatile_from_t`] | | link:#clang-mrdocs-make_dependent_t[`make_dependent_t`] | |=== === Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-AccessKind[`AccessKind`] | Access specifier. | link:#clang-mrdocs-AutoKind[`AutoKind`] | The kind of `auto` keyword used in a declaration. | link:#clang-mrdocs-ConstexprKind[`ConstexprKind`] | `constexpr`/`consteval` specifier kinds | link:#clang-mrdocs-ExplicitKind[`ExplicitKind`] | Explicit specifier kinds | link:#clang-mrdocs-ExtractionMode[`ExtractionMode`] | Determine why a symbol is extracted | link:#clang-mrdocs-FileKind[`FileKind`] | | link:#clang-mrdocs-FunctionClass[`FunctionClass`] | Function classifications | link:#clang-mrdocs-FundamentalTypeKind[`FundamentalTypeKind`] | Categorically describes a fundamental type. | link:#clang-mrdocs-InfoKind[`InfoKind`] | Info variant discriminator | link:#clang-mrdocs-NameKind[`NameKind`] | | link:#clang-mrdocs-NoexceptKind[`NoexceptKind`] | Exception specification kinds | link:#clang-mrdocs-OperatorKind[`OperatorKind`] | Operator kinds | link:#clang-mrdocs-QualifierKind[`QualifierKind`] | Type qualifiers | link:#clang-mrdocs-RecordKeyKind[`RecordKeyKind`] | The kind of record: struct, class, or union. | link:#clang-mrdocs-ReferenceKind[`ReferenceKind`] | Reference type kinds | link:#clang-mrdocs-StorageClassKind[`StorageClassKind`] | Storage class kinds | link:#clang-mrdocs-TArgKind[`TArgKind`] | The kind of template argument. | link:#clang-mrdocs-TParamKeyKind[`TParamKeyKind`] | The keyword a template parameter was declared with | link:#clang-mrdocs-TParamKind[`TParamKind`] | | link:#clang-mrdocs-TemplateSpecKind[`TemplateSpecKind`] | The kind of template or specialization. | link:#clang-mrdocs-TypeKind[`TypeKind`] | | link:#clang-mrdocs-UsingClass[`UsingClass`] | The class of using declaration. |=== === Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-CompareDerived-06[`CompareDerived`] | Compares two polymorphic objects that have visit functions | link:#clang-mrdocs-HTMLEscape-08[`HTMLEscape`] | `HTMLEscape` overloads | link:#clang-mrdocs-addMember[`addMember`] | | link:#clang-mrdocs-allMembers-02[`allMembers`] | | link:#clang-mrdocs-assert_failed[`assert_failed`] | | link:#clang-mrdocs-canMerge[`canMerge`] | | link:#clang-mrdocs-compareSymbolNames[`compareSymbolNames`] | Return the result of comparing s0 to s1. | link:#clang-mrdocs-contains-01[`contains`] | Determine if a range contains a specific element. | link:#clang-mrdocs-contains_any-00d[`contains_any`] | Determine if a range contains any of the specified elements. | link:#clang-mrdocs-contains_n[`contains_n`] | Determine if a range contains at least N instances of the specified element. | link:#clang-mrdocs-contains_n_any-08[`contains_n_any`] | Determine if a range contains at least N instances of any of the specified elements. | link:#clang-mrdocs-countInfoKind[`countInfoKind`] | | link:#clang-mrdocs-createFrame-0e[`createFrame`] | Create child data objects. | link:#clang-mrdocs-endsWithOneOf[`endsWithOneOf`] | Determine if a string ends with one of the specified characters | link:#clang-mrdocs-escapeExpression[`escapeExpression`] | | link:#clang-mrdocs-find_last_of[`find_last_of`] | Find the last element in a range that matches an element in the specified range. | link:#clang-mrdocs-forEachFile-0df[`forEachFile`] | `forEachFile` overloads | link:#clang-mrdocs-formatError[`formatError`] | Return a formatted error. | link:#clang-mrdocs-fromString[`fromString`] | Convert a string to a FundamentalTypeKind. | link:#clang-mrdocs-getDefaultAccessString[`getDefaultAccessString`] | | link:#clang-mrdocs-getGenerators[`getGenerators`] | Return a reference to the global Generators instance. | link:#clang-mrdocs-getOperatorKind[`getOperatorKind`] | Return the short name of an operator as a string. | link:#clang-mrdocs-getOperatorKindFromSuffix[`getOperatorKindFromSuffix`] | Return the short name of an operator as a string. | link:#clang-mrdocs-getOperatorName[`getOperatorName`] | Return the name of an operator as a string. | link:#clang-mrdocs-getOperatorReadableName[`getOperatorReadableName`] | Return the human‐readable name of the operator | link:#clang-mrdocs-getParents-0b[`getParents`] | Return a list of the parent symbols of the specified Info. | link:#clang-mrdocs-getPrimaryLocation-00[`getPrimaryLocation`] | | link:#clang-mrdocs-getSafeOperatorName[`getSafeOperatorName`] | Return the safe name of an operator as a string. | link:#clang-mrdocs-getShortOperatorName[`getShortOperatorName`] | Return the short name of an operator as a string. | link:#clang-mrdocs-getSinglePageFullPath[`getSinglePageFullPath`] | Return the full path for single page output. | link:#clang-mrdocs-innerType-02[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-07[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innermostType-06[`innermostType`] | Return the innermost type. | link:#clang-mrdocs-isAlphaNumeric-0c[`isAlphaNumeric`] | | link:#clang-mrdocs-isAlphabetic-0a[`isAlphabetic`] | | link:#clang-mrdocs-isBinaryOperator[`isBinaryOperator`] | Determines whether the operator is potentially binary. | link:#clang-mrdocs-isDigit-03[`isDigit`] | | link:#clang-mrdocs-isEmpty[`isEmpty`] | Determine if a value is empty | link:#clang-mrdocs-isLowerCase-06[`isLowerCase`] | | link:#clang-mrdocs-isUnaryOperator[`isUnaryOperator`] | Determines whether the operator is potentially unary. | link:#clang-mrdocs-isUpperCase-04[`isUpperCase`] | | link:#clang-mrdocs-isWhitespace[`isWhitespace`] | Determine if a string is only whitespace. | link:#clang-mrdocs-is_one_of-0f[`is_one_of`] | Determine if an element is equal to any of the elements in the specified range. | link:#clang-mrdocs-leastSpecific[`leastSpecific`] | Compare ExtractionModes and returns the least specific | link:#clang-mrdocs-ltrim-0d[`ltrim`] | `ltrim` overloads | link:#clang-mrdocs-makeChar[`makeChar`] | Apply the "char" specifier to the type | link:#clang-mrdocs-makeLong[`makeLong`] | Apply the "long" specifier to the type | link:#clang-mrdocs-makeShort[`makeShort`] | Apply the "short" specifier to the type | link:#clang-mrdocs-makeSigned[`makeSigned`] | Apply the "signed" specifier to the type | link:#clang-mrdocs-makeUnsigned[`makeUnsigned`] | Apply the "unsigned" specifier to the type | link:#clang-mrdocs-makeVisitor[`makeVisitor`] | Make a visitor for a base type | link:#clang-mrdocs-merge-034[`merge`] | `merge` overloads | link:#clang-mrdocs-mostSpecific[`mostSpecific`] | Compare ExtractionModes and returns the most specific | link:#clang-mrdocs-overrides[`overrides`] | Determine if one function would override the other | link:#clang-mrdocs-parse-0c[`parse`] | Parse a string view | link:#clang-mrdocs-replace[`replace`] | Return the substring without leading and trailing horizontal whitespace. | link:#clang-mrdocs-rtrim-04[`rtrim`] | `rtrim` overloads | link:#clang-mrdocs-safeString-08[`safeString`] | Create a wrapper for a safe string. | link:#clang-mrdocs-startsWithOneOf[`startsWithOneOf`] | Determine if a string starts with one of the specified characters | link:#clang-mrdocs-swap-0e[`swap`] | | link:#clang-mrdocs-tag_invoke-09f5[`tag_invoke`] | `tag_invoke` overloads | link:#clang-mrdocs-toBase16Str[`toBase16Str`] | Convert a SymbolID to a string | link:#clang-mrdocs-toCamelCase[`toCamelCase`] | | link:#clang-mrdocs-toKebabCase[`toKebabCase`] | | link:#clang-mrdocs-toLowerCase-0e[`toLowerCase`] | | link:#clang-mrdocs-toPascalCase[`toPascalCase`] | | link:#clang-mrdocs-toSnakeCase[`toSnakeCase`] | | link:#clang-mrdocs-toString-004[`toString`] | `toString` overloads | link:#clang-mrdocs-toUpperCase-0e[`toUpperCase`] | | link:#clang-mrdocs-to_underlying[`to_underlying`] | Return the value as its underlying type. | link:#clang-mrdocs-trim-05[`trim`] | `trim` overloads | link:#clang-mrdocs-visit-04[`visit`] | Invoke a function object with a type derived from Info | link:#clang-mrdocs-operator_lshift-0e[`operator<<`] | Write to output | link:#clang-mrdocs-operator_eq-05[`operator==`] | Equality operators | link:#clang-mrdocs-operator_3way-0f1[`operator<=>`] | Three‐way comparison operators |=== === Variables [cols=1] |=== | Name | link:#clang-mrdocs-unexpect[`unexpect`] |=== === Concepts [cols=2] |=== | Name | Description | link:#clang-mrdocs-HasParse[`HasParse`] | Concept to determine if there's a parse function for a type. | link:#clang-mrdocs-InfoParent[`InfoParent`] | A concept for types that have `Info` members. | link:#clang-mrdocs-dereferenceable[`dereferenceable`] | Determine if a type is dereferenceable | link:#clang-mrdocs-pair_like[`pair_like`] | Concept to check if a type is pair‐like | link:#clang-mrdocs-polymorphic_storage_for[`polymorphic_storage_for`] | Concept to check if a type is representing a polymorphic storage | link:#clang-mrdocs-range_of[`range_of`] | Concept to check if a type is a range of T | link:#clang-mrdocs-range_of_tuple_like[`range_of_tuple_like`] | Concept to check if a range is a range of tuple‐like elements | link:#clang-mrdocs-tuple_like[`tuple_like`] | Concept to check if a type is tuple‐like |=== === Deduction Guides [cols=1] |=== | Name | link:#clang-mrdocs-RangeFor-04[`RangeFor<Container>`] | link:#clang-mrdocs-ScopeExit-0e[`ScopeExit<F>`] | link:#clang-mrdocs-ScopeExitRestore-0a[`ScopeExitRestore<T>`] | link:#clang-mrdocs-ScopeExitRestore-08[`ScopeExitRestore<T>`] | link:#clang-mrdocs-Unexpected-03[`Unexpected<E>`] |=== === Using Declarations [cols=1] |=== | Name | link:#clang-mrdocs-source_location[`source_location`] |=== == link:#clang-mrdocs-doc[clang::mrdocs::doc] namespace Javadoc related types and functions. === Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Admonition[`Admonition`] | An admonition. | link:#clang-mrdocs-doc-Block[`Block`] | A piece of block content | link:#clang-mrdocs-doc-Brief[`Brief`] | The brief description | link:#clang-mrdocs-doc-Code[`Code`] | Preformatted source code. | link:#clang-mrdocs-doc-CopyDetails[`CopyDetails`] | Documentation copied from another symbol. | link:#clang-mrdocs-doc-Heading[`Heading`] | A manually specified section heading. | link:#clang-mrdocs-doc-Link[`Link`] | A hyperlink. | link:#clang-mrdocs-doc-ListItem[`ListItem`] | An item in a list | link:#clang-mrdocs-doc-Node[`Node`] | This is a variant‐like list element. | link:#clang-mrdocs-doc-Paragraph[`Paragraph`] | A sequence of text nodes. | link:#clang-mrdocs-doc-Param[`Param`] | Documentation for a function parameter | link:#clang-mrdocs-doc-Postcondition[`Postcondition`] | | link:#clang-mrdocs-doc-Precondition[`Precondition`] | | link:#clang-mrdocs-doc-Reference[`Reference`] | A reference to a symbol. | link:#clang-mrdocs-doc-Returns[`Returns`] | Documentation for a function return type | link:#clang-mrdocs-doc-See[`See`] | A | link:#clang-mrdocs-doc-Styled[`Styled`] | A piece of styled text. | link:#clang-mrdocs-doc-TParam[`TParam`] | Documentation for a template parameter | link:#clang-mrdocs-doc-Text[`Text`] | A Node containing a string of text. | link:#clang-mrdocs-doc-Throws[`Throws`] | Documentation for a function parameter | link:#clang-mrdocs-doc-UnorderedList[`UnorderedList`] | A list of list items |=== === Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Admonish[`Admonish`] | An admonishment style. | link:#clang-mrdocs-doc-NodeKind[`NodeKind`] | The kind of node. | link:#clang-mrdocs-doc-ParamDirection[`ParamDirection`] | Parameter pass direction. | link:#clang-mrdocs-doc-Parts[`Parts`] | Which parts of the documentation to copy. | link:#clang-mrdocs-doc-Style[`Style`] | The text style. |=== === Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-tag_invoke-0503[`tag_invoke`] | `tag_invoke` overloads | link:#clang-mrdocs-doc-toString-05[`toString`] | `toString` overloads | link:#clang-mrdocs-doc-traverse[`traverse`] | Traverse a list of nodes. | link:#clang-mrdocs-doc-visit[`visit`] | Visit a node. | link:#clang-mrdocs-doc-operator_eq[`operator==`] | Equality operator | link:#clang-mrdocs-doc-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == See Also https://en.wikipedia.org/wiki/Javadoc https://www.doxygen.nl == link:#clang-mrdocs-dom[clang::mrdocs::dom] namespace Objects representing JSON‐like values. === Namespaces [cols=1] |=== | Name | link:#clang-mrdocs-dom-JSON[`JSON`] |=== === Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-Array[`Array`] | An array of values | link:#clang-mrdocs-dom-ArrayImpl[`ArrayImpl`] | Abstract array interface. | link:#clang-mrdocs-dom-DefaultArrayImpl[`DefaultArrayImpl`] | The default array implementation. | link:#clang-mrdocs-dom-DefaultFunctionImpl[`DefaultFunctionImpl`] | | link:#clang-mrdocs-dom-DefaultObjectImpl[`DefaultObjectImpl`] | The default Object implementation. | link:#clang-mrdocs-dom-Function[`Function`] | | link:#clang-mrdocs-dom-FunctionImpl[`FunctionImpl`] | | link:#clang-mrdocs-dom-LazyArrayImpl[`LazyArrayImpl`] | Lazy array implementation | link:#clang-mrdocs-dom-LazyObjectImpl[`LazyObjectImpl`] | Lazy object implementation. | link:#clang-mrdocs-dom-LazyObjectMapTag[`LazyObjectMapTag`] | Customization point tag. | link:#clang-mrdocs-dom-Object[`Object`] | A container of key and value pairs. | link:#clang-mrdocs-dom-ObjectImpl[`ObjectImpl`] | Abstract object interface. | link:#clang-mrdocs-dom-String[`String`] | | link:#clang-mrdocs-dom-Value[`Value`] | A variant container for any kind of Dom value. | link:#clang-mrdocs-dom-ValueFromTag[`ValueFromTag`] | Customization point tag. | link:#clang-mrdocs-dom-VariadicFunctionImpl[`VariadicFunctionImpl`] | | link:#clang-mrdocs-dom-function_traits-00[`function_traits`] | | link:#clang-mrdocs-dom-function_traits-0a8[`function_traits<F>`] | | link:#clang-mrdocs-dom-function_traits-03[`function_traits<R(*)(Args...)>`] | | link:#clang-mrdocs-dom-function_traits-0e[`function_traits<R(Args...)>`] | | link:#clang-mrdocs-dom-function_traits-0ae[`function_traits<R const volatile(C::*)(Args...)>`] | |=== === Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-Kind[`Kind`] | The type of data in a Value. |=== === Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-LazyArray-0c[`LazyArray`] | `LazyArray` overloads | link:#clang-mrdocs-dom-LazyObject-05[`LazyObject`] | `LazyObject` overloads | link:#clang-mrdocs-dom-TransformArray[`TransformArray`] | Return a new dom::Array based on a transformed lazy array implementation. | link:#clang-mrdocs-dom-ValueFrom-0cc[`ValueFrom`] | `ValueFrom` overloads | link:#clang-mrdocs-dom-makeInvocable[`makeInvocable`] | | link:#clang-mrdocs-dom-makeVariadicInvocable[`makeVariadicInvocable`] | | link:#clang-mrdocs-dom-newArray[`newArray`] | Return a new array using a custom implementation. | link:#clang-mrdocs-dom-newFunction[`newFunction`] | Return a diagnostic string. | link:#clang-mrdocs-dom-newObject[`newObject`] | Return a new object using a custom implementation. | link:#clang-mrdocs-dom-operator_and-03[`operator&&`] | Return the first dom::Value that is not truthy, or the last one. | link:#clang-mrdocs-dom-operator_plus-0b0[`operator+`] | Addition operators | link:#clang-mrdocs-dom-operator_or-08[`operator||`] | Return the first dom::Value that is truthy, or the last one. | link:#clang-mrdocs-dom-stringOrNull[`stringOrNull`] | Return a non‐empty string, or a null. | link:#clang-mrdocs-dom-swap-06[`swap`] | `swap` overloads | link:#clang-mrdocs-dom-toString-05[`toString`] | `toString` overloads | link:#clang-mrdocs-dom-operator_eq-0f[`operator==`] | Equality operators | link:#clang-mrdocs-dom-operator_not_eq-0a[`operator!=`] | Return the result of comparing two strings. | link:#clang-mrdocs-dom-operator_3way-0fa[`operator<=>`] | Three‐way comparison operators |=== === Concepts [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-HasLazyObjectMap[`HasLazyObjectMap`] | Determine if `T` can be converted to link:#clang-mrdocs-dom-Value[`dom::Value`]. | link:#clang-mrdocs-dom-HasLazyObjectMapWithContext[`HasLazyObjectMapWithContext`] | Concept to determine if a type can be mapped to a link:#clang-mrdocs-dom-LazyObjectImpl[`dom::LazyObjectImpl`] with a user‐provided conversion. | link:#clang-mrdocs-dom-HasLazyObjectMapWithoutContext[`HasLazyObjectMapWithoutContext`] | Concept to determine if a type can be mapped to a link:#clang-mrdocs-dom-LazyObjectImpl[`dom::LazyObjectImpl`] with a user‐provided conversion. | link:#clang-mrdocs-dom-HasStandaloneValueFrom[`HasStandaloneValueFrom`] | Determine if `T` can be converted to link:#clang-mrdocs-dom-Value[`dom::Value`] without a context. | link:#clang-mrdocs-dom-HasValueFrom[`HasValueFrom`] | Determine if `T` can be converted to link:#clang-mrdocs-dom-Value[`dom::Value`]. | link:#clang-mrdocs-dom-HasValueFromWithContext[`HasValueFromWithContext`] | Concept to determine if a type can be converted to a link:#clang-mrdocs-dom-Value[`dom::Value`] with a user‐provided conversion. | link:#clang-mrdocs-dom-HasValueFromWithoutContext[`HasValueFromWithoutContext`] | Concept to determine if a type can be converted to a link:#clang-mrdocs-dom-Value[`dom::Value`] with a user‐provided conversion. | link:#clang-mrdocs-dom-StringLikeTy[`StringLikeTy`] | Satisfied if StringTy is convertible to String but not a String. | link:#clang-mrdocs-dom-function_traits_convertible_to_value[`function_traits_convertible_to_value`] | | link:#clang-mrdocs-dom-has_function_args_for_default_function_impl[`has_function_args_for_default_function_impl`] | | link:#clang-mrdocs-dom-has_function_traits[`has_function_traits`] | | link:#clang-mrdocs-dom-has_function_traits_for_default_function_impl[`has_function_traits_for_default_function_impl`] | | link:#clang-mrdocs-dom-has_invoke_expected_result_convertible_to_dom_value[`has_invoke_expected_result_convertible_to_dom_value`] | | link:#clang-mrdocs-dom-has_invoke_result_convertible_to_dom_value[`has_invoke_result_convertible_to_dom_value`] | | link:#clang-mrdocs-dom-has_invoke_result_for_default_function_impl[`has_invoke_result_for_default_function_impl`] | |=== == link:#clang-mrdocs-dom-JSON[clang::mrdocs::dom::JSON] namespace === Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-JSON-stringify[`stringify`] | Stringify a value as JSON |=== == link:#clang-mrdocs-files[clang::mrdocs::files] namespace === Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-files-FileType[`FileType`] | The type of a file. |=== === Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-files-appendPath-0b[`appendPath`] | | link:#clang-mrdocs-files-createDirectory[`createDirectory`] | Create a directory. | link:#clang-mrdocs-files-exists[`exists`] | Determine if a path exists | link:#clang-mrdocs-files-getFileName[`getFileName`] | Return the filename part of the path. | link:#clang-mrdocs-files-getFileText[`getFileText`] | Return the contents of a file as a string. | link:#clang-mrdocs-files-getFileType[`getFileType`] | Return the file type or an error | link:#clang-mrdocs-files-getParentDir-00[`getParentDir`] | Return the parent directory. | link:#clang-mrdocs-files-getSourceFilename[`getSourceFilename`] | Return the relevant suffix of a source file path. | link:#clang-mrdocs-files-isAbsolute[`isAbsolute`] | Return true if pathName is absolute. | link:#clang-mrdocs-files-isDirectory[`isDirectory`] | Determine if a path is a directory. | link:#clang-mrdocs-files-isDirsy[`isDirsy`] | Return true if pathName ends in a separator. | link:#clang-mrdocs-files-isLexicalDirectory[`isLexicalDirectory`] | Determine lexically if a path is a directory. | link:#clang-mrdocs-files-isPosixStyle[`isPosixStyle`] | Check if the path is posix style. | link:#clang-mrdocs-files-makeAbsolute-0c[`makeAbsolute`] | Return an absolute path from a possibly relative path. | link:#clang-mrdocs-files-makeDirsy[`makeDirsy`] | Append a trailing native separator if not already present. | link:#clang-mrdocs-files-makePosixStyle[`makePosixStyle`] | Convert all backward slashes to forward slashes. | link:#clang-mrdocs-files-normalizeDir[`normalizeDir`] | Return a normalized directory. | link:#clang-mrdocs-files-normalizePath[`normalizePath`] | Return a normalized path. | link:#clang-mrdocs-files-requireAbsolute[`requireAbsolute`] | Return an error if pathName is not absolute. | link:#clang-mrdocs-files-requireDirectory[`requireDirectory`] | Return an error if the path is not a directory. | link:#clang-mrdocs-files-startsWith[`startsWith`] | Checks if the given path starts with the specified prefix. | link:#clang-mrdocs-files-withExtension[`withExtension`] | Return the filename with a new or different extension. |=== == link:#clang-mrdocs-helpers[clang::mrdocs::helpers] namespace === Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-helpers-and_fn[`and_fn`] | "and" helper function | link:#clang-mrdocs-helpers-detag_fn[`detag_fn`] | "detag" helper function | link:#clang-mrdocs-helpers-eq_fn[`eq_fn`] | "eq" helper function | link:#clang-mrdocs-helpers-increment_fn[`increment_fn`] | "increment" helper function | link:#clang-mrdocs-helpers-ne_fn[`ne_fn`] | "ne" helper function | link:#clang-mrdocs-helpers-not_fn[`not_fn`] | "not" helper function | link:#clang-mrdocs-helpers-or_fn[`or_fn`] | "or" helper function | link:#clang-mrdocs-helpers-registerAntoraHelpers[`registerAntoraHelpers`] | Register all the Antora helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerBuiltinHelpers[`registerBuiltinHelpers`] | Register all the built‐in helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerConstructorHelpers[`registerConstructorHelpers`] | Register contructor helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerContainerHelpers[`registerContainerHelpers`] | Register helpers to manipulate composite data types | link:#clang-mrdocs-helpers-registerLogicalHelpers[`registerLogicalHelpers`] | Register logical helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerMathHelpers[`registerMathHelpers`] | Register math helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerStringHelpers[`registerStringHelpers`] | Register string helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerTypeHelpers[`registerTypeHelpers`] | Register type helpers into a Handlebars instance | link:#clang-mrdocs-helpers-relativize_fn[`relativize_fn`] | "relativize" helper function | link:#clang-mrdocs-helpers-select_fn[`select_fn`] | "select" helper function | link:#clang-mrdocs-helpers-year_fn[`year_fn`] | "year" helper function |=== == link:#clang-mrdocs-js[clang::mrdocs::js] namespace === Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-js-Access[`Access`] | | link:#clang-mrdocs-js-Array[`Array`] | | link:#clang-mrdocs-js-Boolean[`Boolean`] | | link:#clang-mrdocs-js-Context[`Context`] | An instance of a JavaScript interpreter. | link:#clang-mrdocs-js-Object[`Object`] | | link:#clang-mrdocs-js-Prop[`Prop`] | | link:#clang-mrdocs-js-Scope[`Scope`] | A JavaScript scope | link:#clang-mrdocs-js-String[`String`] | | link:#clang-mrdocs-js-Value[`Value`] | An ECMAScript value. |=== === Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-js-Type[`Type`] | Types of values. |=== === Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-js-operator_and-06[`operator&&`] | Return the first Value that is not truthy, or the last one. | link:#clang-mrdocs-js-operator_or-0b[`operator||`] | Return the first Value that is truthy, or the last one. | link:#clang-mrdocs-js-registerHelper[`registerHelper`] | Register a JavaScript helper function | link:#clang-mrdocs-js-swap[`swap`] | Swap two values. | link:#clang-mrdocs-js-toString[`toString`] | Return value as a string. | link:#clang-mrdocs-js-operator_eq-07[`operator==`] | Compare two values for equality. | link:#clang-mrdocs-js-operator_not_eq-01[`operator!=`] | Inequality operators | link:#clang-mrdocs-js-operator_3way[`operator<=>`] | Compare two values for inequality. |=== == link:#clang-mrdocs-lua[clang::mrdocs::lua] namespace === Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Access[`Access`] | | link:#clang-mrdocs-lua-Context[`Context`] | A reference to an instance of a Lua interpreter. | link:#clang-mrdocs-lua-Function[`Function`] | A Lua function. | link:#clang-mrdocs-lua-Param[`Param`] | A lazy container to push values to the Lua stack. | link:#clang-mrdocs-lua-Scope[`Scope`] | | link:#clang-mrdocs-lua-String[`String`] | A Lua string. | link:#clang-mrdocs-lua-Table[`Table`] | A Lua table. | link:#clang-mrdocs-lua-Value[`Value`] | A Lua value. | link:#clang-mrdocs-lua-zstring[`zstring`] | A null‐terminated string. | link:#clang-mrdocs-lua-FunctionPtr[`FunctionPtr`] | |=== === Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Type[`Type`] | Types of values. |=== == link:#clang-mrdocs-report[clang::mrdocs::report] namespace === Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-report-Located[`Located`] | Parameter type that adds a source location to a value. | link:#clang-mrdocs-report-Results[`Results`] | Provides statistics on the number of reported messages. |=== === Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-report-Level[`Level`] | Severity levels attached to reported messags. |=== === Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-report-debug[`debug`] | Report a message to the console. | link:#clang-mrdocs-report-error[`error`] | Report a message to the console. | link:#clang-mrdocs-report-fatal[`fatal`] | Report a message to the console. | link:#clang-mrdocs-report-getMinimumLevel[`getMinimumLevel`] | | link:#clang-mrdocs-report-info[`info`] | Report a message to the console. | link:#clang-mrdocs-report-log[`log`] | Format a message to the console. | link:#clang-mrdocs-report-print-06[`print`] | Report a message to the console. | link:#clang-mrdocs-report-setMinimumLevel[`setMinimumLevel`] | Set the minimum threshold level for reporting. | link:#clang-mrdocs-report-setSourceLocationWarnings[`setSourceLocationWarnings`] | If true, source location information will be printed with warnings, errors, and fatal messages. | link:#clang-mrdocs-report-trace[`trace`] | Report a message to the console. | link:#clang-mrdocs-report-warn[`warn`] | Report a message to the console. |=== === Variables [cols=2] |=== | Name | Description | link:#clang-mrdocs-report-results[`results`] | Holds current statistics on reported messages. |=== == Namespaces [cols=1] |=== | Name | link:#clang-mrdocs[`mrdocs`] |=== == Namespaces [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc[`doc`] | Javadoc related types and functions. | link:#clang-mrdocs-dom[`dom`] | Objects representing JSON‐like values. | link:#clang-mrdocs-files[`files`] | | link:#clang-mrdocs-helpers[`helpers`] | | link:#clang-mrdocs-js[`js`] | | link:#clang-mrdocs-lua[`lua`] | | link:#clang-mrdocs-report[`report`] | |=== == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-AnyFileVisitor[`AnyFileVisitor`] | | link:#clang-mrdocs-ArrayTypeInfo[`ArrayTypeInfo`] | | link:#clang-mrdocs-AutoTypeInfo[`AutoTypeInfo`] | | link:#clang-mrdocs-BadExpectedAccess-0d[`BadExpectedAccess`] | | link:#clang-mrdocs-BadExpectedAccess-01[`BadExpectedAccess<void>`] | | link:#clang-mrdocs-BaseInfo[`BaseInfo`] | Metadata for a direct base. | link:#clang-mrdocs-ConceptInfo[`ConceptInfo`] | Info for concepts. | link:#clang-mrdocs-Config[`Config`] | Configuration used to generate the Corpus and Docs | link:#clang-mrdocs-ConstantExprInfo[`ConstantExprInfo`] | Represents an expression with a (possibly known) value | link:#clang-mrdocs-Corpus[`Corpus`] | The collection of declarations in extracted form. | link:#clang-mrdocs-DecltypeTypeInfo[`DecltypeTypeInfo`] | | link:#clang-mrdocs-DefaultEmptyPredicate[`DefaultEmptyPredicate`] | The default empty predicate. | link:#clang-mrdocs-DomCorpus[`DomCorpus`] | Front‐end factory for producing Dom nodes. | link:#clang-mrdocs-EnumConstantInfo[`EnumConstantInfo`] | Info for enum constants. | link:#clang-mrdocs-EnumInfo[`EnumInfo`] | | link:#clang-mrdocs-Error[`Error`] | Holds the description of an error, or success. | link:#clang-mrdocs-Exception[`Exception`] | Type of all exceptions thrown by the API. | link:#clang-mrdocs-ExecutorGroup[`ExecutorGroup`] | A set of execution agents for performing concurrent work. | link:#clang-mrdocs-ExecutorGroupBase[`ExecutorGroupBase`] | | link:#clang-mrdocs-Expected-03[`Expected`] | A container holding an error or a value. | link:#clang-mrdocs-Expected-0c[`Expected<T, E>`] | | link:#clang-mrdocs-ExplicitInfo[`ExplicitInfo`] | | link:#clang-mrdocs-ExprInfo[`ExprInfo`] | Represents an expression | link:#clang-mrdocs-FormatString[`FormatString`] | A format string with source location. | link:#clang-mrdocs-FriendInfo[`FriendInfo`] | Info for friend declarations. | link:#clang-mrdocs-FunctionInfo[`FunctionInfo`] | | link:#clang-mrdocs-FunctionTypeInfo[`FunctionTypeInfo`] | | link:#clang-mrdocs-Generator[`Generator`] | Base class for documentation generators. | link:#clang-mrdocs-Generators[`Generators`] | A dynamic list of Generator | link:#clang-mrdocs-GlobPattern[`GlobPattern`] | A glob pattern matcher | link:#clang-mrdocs-GuideInfo[`GuideInfo`] | Info for deduction guides. | link:#clang-mrdocs-Handlebars[`Handlebars`] | A handlebars environment | link:#clang-mrdocs-HandlebarsError[`HandlebarsError`] | An error thrown or returned by Handlebars | link:#clang-mrdocs-HandlebarsOptions[`HandlebarsOptions`] | Options for handlebars | link:#clang-mrdocs-Info[`Info`] | Base class with common properties of all symbols | link:#clang-mrdocs-InfoCommonBase-08[`InfoCommonBase`] | Base class for providing variant discriminator functions. | link:#clang-mrdocs-IsTArg-01[`IsTArg`] | | link:#clang-mrdocs-Javadoc[`Javadoc`] | A processed Doxygen‐style comment attached to a declaration. | link:#clang-mrdocs-LValueReferenceTypeInfo[`LValueReferenceTypeInfo`] | | link:#clang-mrdocs-Location[`Location`] | | link:#clang-mrdocs-LocationEmptyPredicate[`LocationEmptyPredicate`] | | link:#clang-mrdocs-MemberPointerTypeInfo[`MemberPointerTypeInfo`] | | link:#clang-mrdocs-NameInfo[`NameInfo`] | Represents a name for a named `TypeInfo` | link:#clang-mrdocs-NamedTypeInfo[`NamedTypeInfo`] | | link:#clang-mrdocs-NamespaceAliasInfo[`NamespaceAliasInfo`] | Info for namespace aliases. | link:#clang-mrdocs-NamespaceInfo[`NamespaceInfo`] | Describes a namespace. | link:#clang-mrdocs-NamespaceTranche[`NamespaceTranche`] | The members of a Namespace | link:#clang-mrdocs-NoexceptInfo[`NoexceptInfo`] | | link:#clang-mrdocs-NonTypeTArg[`NonTypeTArg`] | | link:#clang-mrdocs-NonTypeTParam[`NonTypeTParam`] | | link:#clang-mrdocs-Optional[`Optional`] | A compact optional. | link:#clang-mrdocs-OutputRef[`OutputRef`] | Reference to output stream used by handlebars | link:#clang-mrdocs-OverloadsInfo[`OverloadsInfo`] | Represents a set of function overloads. | link:#clang-mrdocs-Param[`Param`] | Represents a single function parameter | link:#clang-mrdocs-ParseResult[`ParseResult`] | The result of a parse operation. | link:#clang-mrdocs-PathGlobPattern[`PathGlobPattern`] | A glob pattern matcher for paths | link:#clang-mrdocs-PointerTypeInfo[`PointerTypeInfo`] | | link:#clang-mrdocs-Polymorphic[`Polymorphic`] | A polymorphic value‐type. | link:#clang-mrdocs-RValueReferenceTypeInfo[`RValueReferenceTypeInfo`] | | link:#clang-mrdocs-RangeFor-07[`RangeFor`] | Range to help range‐for loops identify first and last. | link:#clang-mrdocs-RecordInfo[`RecordInfo`] | Metadata for struct, class, or union. | link:#clang-mrdocs-RecordInterface[`RecordInterface`] | The aggregated interface for a given struct, class, or union. | link:#clang-mrdocs-RecordTranche[`RecordTranche`] | A group of members that have the same access specifier. | link:#clang-mrdocs-ReferenceDirectories[`ReferenceDirectories`] | Reference directories used to resolve paths | link:#clang-mrdocs-ScopeExit-04[`ScopeExit`] | | link:#clang-mrdocs-ScopeExitRestore-05[`ScopeExitRestore`] | | link:#clang-mrdocs-SourceInfo[`SourceInfo`] | Stores source information for a declaration. | link:#clang-mrdocs-SourceLocation[`SourceLocation`] | A source location with filename prettification. | link:#clang-mrdocs-SpecializationNameInfo[`SpecializationNameInfo`] | Represents a (possibly qualified) symbol name with template arguments. | link:#clang-mrdocs-StringHash[`StringHash`] | | link:#clang-mrdocs-SymbolGlobPattern[`SymbolGlobPattern`] | A glob pattern matcher for C++ symbols | link:#clang-mrdocs-SymbolID[`SymbolID`] | A unique identifier for a symbol. | link:#clang-mrdocs-TArg[`TArg`] | | link:#clang-mrdocs-TParam[`TParam`] | | link:#clang-mrdocs-TParamCommonBase-00[`TParamCommonBase`] | | link:#clang-mrdocs-TaskGroup[`TaskGroup`] | A subset of possible work in a thread pool. | link:#clang-mrdocs-TemplateInfo[`TemplateInfo`] | Information pertaining to templates and specializations thereof. | link:#clang-mrdocs-TemplateTArg[`TemplateTArg`] | | link:#clang-mrdocs-TemplateTParam[`TemplateTParam`] | | link:#clang-mrdocs-ThreadPool[`ThreadPool`] | A pool of threads for executing work concurrently. | link:#clang-mrdocs-TypeInfo[`TypeInfo`] | A possibly qualified type. | link:#clang-mrdocs-TypeInfoCommonBase-0a[`TypeInfoCommonBase`] | | link:#clang-mrdocs-TypeTArg[`TypeTArg`] | | link:#clang-mrdocs-TypeTParam[`TypeTParam`] | | link:#clang-mrdocs-TypedefInfo[`TypedefInfo`] | | link:#clang-mrdocs-Unexpected-02[`Unexpected`] | | link:#clang-mrdocs-UsingInfo[`UsingInfo`] | Info for using declarations. | link:#clang-mrdocs-VariableInfo[`VariableInfo`] | A variable. | link:#clang-mrdocs-Visitor[`Visitor`] | A visitor for a type | link:#clang-mrdocs-add_const_from[`add_const_from`] | | link:#clang-mrdocs-add_cv_from[`add_cv_from`] | | link:#clang-mrdocs-add_cvref_from[`add_cvref_from`] | | link:#clang-mrdocs-add_lvalue_reference_from[`add_lvalue_reference_from`] | | link:#clang-mrdocs-add_reference_from[`add_reference_from`] | | link:#clang-mrdocs-add_rvalue_reference_from[`add_rvalue_reference_from`] | | link:#clang-mrdocs-add_volatile_from[`add_volatile_from`] | | link:#clang-mrdocs-any_callable-06[`any_callable`] | A movable, type‐erased function object. | link:#clang-mrdocs-any_callable-07[`any_callable<R(Args...)>`] | | link:#clang-mrdocs-make_dependent[`make_dependent`] | | link:#clang-mrdocs-unexpect_t[`unexpect_t`] | | link:#clang-mrdocs-unlock_guard[`unlock_guard`] | A scoped guard which unlocks a mutex. | link:#clang-mrdocs-OptionalLocation[`OptionalLocation`] | Like std::optional<Location> | link:#clang-mrdocs-UnorderedStringMap[`UnorderedStringMap`] | | link:#clang-mrdocs-UnorderedStringMultiMap[`UnorderedStringMultiMap`] | | link:#clang-mrdocs-add_const_from_t[`add_const_from_t`] | | link:#clang-mrdocs-add_cv_from_t[`add_cv_from_t`] | | link:#clang-mrdocs-add_cvref_from_t[`add_cvref_from_t`] | | link:#clang-mrdocs-add_lvalue_reference_from_t[`add_lvalue_reference_from_t`] | | link:#clang-mrdocs-add_reference_from_t[`add_reference_from_t`] | | link:#clang-mrdocs-add_rvalue_reference_from_t[`add_rvalue_reference_from_t`] | | link:#clang-mrdocs-add_volatile_from_t[`add_volatile_from_t`] | | link:#clang-mrdocs-make_dependent_t[`make_dependent_t`] | |=== == Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-AccessKind[`AccessKind`] | Access specifier. | link:#clang-mrdocs-AutoKind[`AutoKind`] | The kind of `auto` keyword used in a declaration. | link:#clang-mrdocs-ConstexprKind[`ConstexprKind`] | `constexpr`/`consteval` specifier kinds | link:#clang-mrdocs-ExplicitKind[`ExplicitKind`] | Explicit specifier kinds | link:#clang-mrdocs-ExtractionMode[`ExtractionMode`] | Determine why a symbol is extracted | link:#clang-mrdocs-FileKind[`FileKind`] | | link:#clang-mrdocs-FunctionClass[`FunctionClass`] | Function classifications | link:#clang-mrdocs-FundamentalTypeKind[`FundamentalTypeKind`] | Categorically describes a fundamental type. | link:#clang-mrdocs-InfoKind[`InfoKind`] | Info variant discriminator | link:#clang-mrdocs-NameKind[`NameKind`] | | link:#clang-mrdocs-NoexceptKind[`NoexceptKind`] | Exception specification kinds | link:#clang-mrdocs-OperatorKind[`OperatorKind`] | Operator kinds | link:#clang-mrdocs-QualifierKind[`QualifierKind`] | Type qualifiers | link:#clang-mrdocs-RecordKeyKind[`RecordKeyKind`] | The kind of record: struct, class, or union. | link:#clang-mrdocs-ReferenceKind[`ReferenceKind`] | Reference type kinds | link:#clang-mrdocs-StorageClassKind[`StorageClassKind`] | Storage class kinds | link:#clang-mrdocs-TArgKind[`TArgKind`] | The kind of template argument. | link:#clang-mrdocs-TParamKeyKind[`TParamKeyKind`] | The keyword a template parameter was declared with | link:#clang-mrdocs-TParamKind[`TParamKind`] | | link:#clang-mrdocs-TemplateSpecKind[`TemplateSpecKind`] | The kind of template or specialization. | link:#clang-mrdocs-TypeKind[`TypeKind`] | | link:#clang-mrdocs-UsingClass[`UsingClass`] | The class of using declaration. |=== == Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-CompareDerived-06[`CompareDerived`] | Compares two polymorphic objects that have visit functions | link:#clang-mrdocs-HTMLEscape-08[`HTMLEscape`] | `HTMLEscape` overloads | link:#clang-mrdocs-addMember[`addMember`] | | link:#clang-mrdocs-allMembers-02[`allMembers`] | | link:#clang-mrdocs-assert_failed[`assert_failed`] | | link:#clang-mrdocs-canMerge[`canMerge`] | | link:#clang-mrdocs-compareSymbolNames[`compareSymbolNames`] | Return the result of comparing s0 to s1. | link:#clang-mrdocs-contains-01[`contains`] | Determine if a range contains a specific element. | link:#clang-mrdocs-contains_any-00d[`contains_any`] | Determine if a range contains any of the specified elements. | link:#clang-mrdocs-contains_n[`contains_n`] | Determine if a range contains at least N instances of the specified element. | link:#clang-mrdocs-contains_n_any-08[`contains_n_any`] | Determine if a range contains at least N instances of any of the specified elements. | link:#clang-mrdocs-countInfoKind[`countInfoKind`] | | link:#clang-mrdocs-createFrame-0e[`createFrame`] | Create child data objects. | link:#clang-mrdocs-endsWithOneOf[`endsWithOneOf`] | Determine if a string ends with one of the specified characters | link:#clang-mrdocs-escapeExpression[`escapeExpression`] | | link:#clang-mrdocs-find_last_of[`find_last_of`] | Find the last element in a range that matches an element in the specified range. | link:#clang-mrdocs-forEachFile-0df[`forEachFile`] | `forEachFile` overloads | link:#clang-mrdocs-formatError[`formatError`] | Return a formatted error. | link:#clang-mrdocs-fromString[`fromString`] | Convert a string to a FundamentalTypeKind. | link:#clang-mrdocs-getDefaultAccessString[`getDefaultAccessString`] | | link:#clang-mrdocs-getGenerators[`getGenerators`] | Return a reference to the global Generators instance. | link:#clang-mrdocs-getOperatorKind[`getOperatorKind`] | Return the short name of an operator as a string. | link:#clang-mrdocs-getOperatorKindFromSuffix[`getOperatorKindFromSuffix`] | Return the short name of an operator as a string. | link:#clang-mrdocs-getOperatorName[`getOperatorName`] | Return the name of an operator as a string. | link:#clang-mrdocs-getOperatorReadableName[`getOperatorReadableName`] | Return the human‐readable name of the operator | link:#clang-mrdocs-getParents-0b[`getParents`] | Return a list of the parent symbols of the specified Info. | link:#clang-mrdocs-getPrimaryLocation-00[`getPrimaryLocation`] | | link:#clang-mrdocs-getSafeOperatorName[`getSafeOperatorName`] | Return the safe name of an operator as a string. | link:#clang-mrdocs-getShortOperatorName[`getShortOperatorName`] | Return the short name of an operator as a string. | link:#clang-mrdocs-getSinglePageFullPath[`getSinglePageFullPath`] | Return the full path for single page output. | link:#clang-mrdocs-innerType-02[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-07[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innermostType-06[`innermostType`] | Return the innermost type. | link:#clang-mrdocs-isAlphaNumeric-0c[`isAlphaNumeric`] | | link:#clang-mrdocs-isAlphabetic-0a[`isAlphabetic`] | | link:#clang-mrdocs-isBinaryOperator[`isBinaryOperator`] | Determines whether the operator is potentially binary. | link:#clang-mrdocs-isDigit-03[`isDigit`] | | link:#clang-mrdocs-isEmpty[`isEmpty`] | Determine if a value is empty | link:#clang-mrdocs-isLowerCase-06[`isLowerCase`] | | link:#clang-mrdocs-isUnaryOperator[`isUnaryOperator`] | Determines whether the operator is potentially unary. | link:#clang-mrdocs-isUpperCase-04[`isUpperCase`] | | link:#clang-mrdocs-isWhitespace[`isWhitespace`] | Determine if a string is only whitespace. | link:#clang-mrdocs-is_one_of-0f[`is_one_of`] | Determine if an element is equal to any of the elements in the specified range. | link:#clang-mrdocs-leastSpecific[`leastSpecific`] | Compare ExtractionModes and returns the least specific | link:#clang-mrdocs-ltrim-0d[`ltrim`] | `ltrim` overloads | link:#clang-mrdocs-makeChar[`makeChar`] | Apply the "char" specifier to the type | link:#clang-mrdocs-makeLong[`makeLong`] | Apply the "long" specifier to the type | link:#clang-mrdocs-makeShort[`makeShort`] | Apply the "short" specifier to the type | link:#clang-mrdocs-makeSigned[`makeSigned`] | Apply the "signed" specifier to the type | link:#clang-mrdocs-makeUnsigned[`makeUnsigned`] | Apply the "unsigned" specifier to the type | link:#clang-mrdocs-makeVisitor[`makeVisitor`] | Make a visitor for a base type | link:#clang-mrdocs-merge-034[`merge`] | `merge` overloads | link:#clang-mrdocs-mostSpecific[`mostSpecific`] | Compare ExtractionModes and returns the most specific | link:#clang-mrdocs-overrides[`overrides`] | Determine if one function would override the other | link:#clang-mrdocs-parse-0c[`parse`] | Parse a string view | link:#clang-mrdocs-replace[`replace`] | Return the substring without leading and trailing horizontal whitespace. | link:#clang-mrdocs-rtrim-04[`rtrim`] | `rtrim` overloads | link:#clang-mrdocs-safeString-08[`safeString`] | Create a wrapper for a safe string. | link:#clang-mrdocs-startsWithOneOf[`startsWithOneOf`] | Determine if a string starts with one of the specified characters | link:#clang-mrdocs-swap-0e[`swap`] | | link:#clang-mrdocs-tag_invoke-09f5[`tag_invoke`] | `tag_invoke` overloads | link:#clang-mrdocs-toBase16Str[`toBase16Str`] | Convert a SymbolID to a string | link:#clang-mrdocs-toCamelCase[`toCamelCase`] | | link:#clang-mrdocs-toKebabCase[`toKebabCase`] | | link:#clang-mrdocs-toLowerCase-0e[`toLowerCase`] | | link:#clang-mrdocs-toPascalCase[`toPascalCase`] | | link:#clang-mrdocs-toSnakeCase[`toSnakeCase`] | | link:#clang-mrdocs-toString-004[`toString`] | `toString` overloads | link:#clang-mrdocs-toUpperCase-0e[`toUpperCase`] | | link:#clang-mrdocs-to_underlying[`to_underlying`] | Return the value as its underlying type. | link:#clang-mrdocs-trim-05[`trim`] | `trim` overloads | link:#clang-mrdocs-visit-04[`visit`] | Invoke a function object with a type derived from Info | link:#clang-mrdocs-operator_lshift-0e[`operator<<`] | Write to output | link:#clang-mrdocs-operator_eq-05[`operator==`] | Equality operators | link:#clang-mrdocs-operator_3way-0f1[`operator<=>`] | Three‐way comparison operators |=== == Variables [cols=1] |=== | Name | link:#clang-mrdocs-unexpect[`unexpect`] |=== == Concepts [cols=2] |=== | Name | Description | link:#clang-mrdocs-HasParse[`HasParse`] | Concept to determine if there's a parse function for a type. | link:#clang-mrdocs-InfoParent[`InfoParent`] | A concept for types that have `Info` members. | link:#clang-mrdocs-dereferenceable[`dereferenceable`] | Determine if a type is dereferenceable | link:#clang-mrdocs-pair_like[`pair_like`] | Concept to check if a type is pair‐like | link:#clang-mrdocs-polymorphic_storage_for[`polymorphic_storage_for`] | Concept to check if a type is representing a polymorphic storage | link:#clang-mrdocs-range_of[`range_of`] | Concept to check if a type is a range of T | link:#clang-mrdocs-range_of_tuple_like[`range_of_tuple_like`] | Concept to check if a range is a range of tuple‐like elements | link:#clang-mrdocs-tuple_like[`tuple_like`] | Concept to check if a type is tuple‐like |=== == Deduction Guides [cols=1] |=== | Name | link:#clang-mrdocs-RangeFor-04[`RangeFor<Container>`] | link:#clang-mrdocs-ScopeExit-0e[`ScopeExit<F>`] | link:#clang-mrdocs-ScopeExitRestore-0a[`ScopeExitRestore<T>`] | link:#clang-mrdocs-ScopeExitRestore-08[`ScopeExitRestore<T>`] | link:#clang-mrdocs-Unexpected-03[`Unexpected<E>`] |=== == Using Declarations [cols=1] |=== | Name | link:#clang-mrdocs-source_location[`source_location`] |=== Javadoc related types and functions. == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Admonition[`Admonition`] | An admonition. | link:#clang-mrdocs-doc-Block[`Block`] | A piece of block content | link:#clang-mrdocs-doc-Brief[`Brief`] | The brief description | link:#clang-mrdocs-doc-Code[`Code`] | Preformatted source code. | link:#clang-mrdocs-doc-CopyDetails[`CopyDetails`] | Documentation copied from another symbol. | link:#clang-mrdocs-doc-Heading[`Heading`] | A manually specified section heading. | link:#clang-mrdocs-doc-Link[`Link`] | A hyperlink. | link:#clang-mrdocs-doc-ListItem[`ListItem`] | An item in a list | link:#clang-mrdocs-doc-Node[`Node`] | This is a variant‐like list element. | link:#clang-mrdocs-doc-Paragraph[`Paragraph`] | A sequence of text nodes. | link:#clang-mrdocs-doc-Param[`Param`] | Documentation for a function parameter | link:#clang-mrdocs-doc-Postcondition[`Postcondition`] | | link:#clang-mrdocs-doc-Precondition[`Precondition`] | | link:#clang-mrdocs-doc-Reference[`Reference`] | A reference to a symbol. | link:#clang-mrdocs-doc-Returns[`Returns`] | Documentation for a function return type | link:#clang-mrdocs-doc-See[`See`] | A | link:#clang-mrdocs-doc-Styled[`Styled`] | A piece of styled text. | link:#clang-mrdocs-doc-TParam[`TParam`] | Documentation for a template parameter | link:#clang-mrdocs-doc-Text[`Text`] | A Node containing a string of text. | link:#clang-mrdocs-doc-Throws[`Throws`] | Documentation for a function parameter | link:#clang-mrdocs-doc-UnorderedList[`UnorderedList`] | A list of list items |=== == Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Admonish[`Admonish`] | An admonishment style. | link:#clang-mrdocs-doc-NodeKind[`NodeKind`] | The kind of node. | link:#clang-mrdocs-doc-ParamDirection[`ParamDirection`] | Parameter pass direction. | link:#clang-mrdocs-doc-Parts[`Parts`] | Which parts of the documentation to copy. | link:#clang-mrdocs-doc-Style[`Style`] | The text style. |=== == Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-tag_invoke-0503[`tag_invoke`] | `tag_invoke` overloads | link:#clang-mrdocs-doc-toString-05[`toString`] | `toString` overloads | link:#clang-mrdocs-doc-traverse[`traverse`] | Traverse a list of nodes. | link:#clang-mrdocs-doc-visit[`visit`] | Visit a node. | link:#clang-mrdocs-doc-operator_eq[`operator==`] | Equality operator | link:#clang-mrdocs-doc-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Description Javadoc is a documentation generator originally created for the Java language from source code. The Javadoc documentation generator tool can interpret text in the "doc comments" format included directly in the source code. The same "doc comments" format has been replicated and extended by documentation systems for other languages, including the cross‐language Doxygen and the JSDoc system for JavaScript. Because Clang can already parse and extract blocks of Javadoc‐style comments from source code, these classes are used to represent the parsed documentation in a structured form. == See Also https://en.wikipedia.org/wiki/Javadoc https://www.doxygen.nl An admonition. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Admonition final : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Admonition-2constructor[`Admonition`] [.small]#[constructor]# | Construct from `Admonish` | link:#clang-mrdocs-doc-Admonition-operator_assign-09[`operator=`] [.small]#[virtual]# | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-Admonition-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Admonition-operator_eq-0e[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Admonition-operator_3way-0b0[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Admonition-admonish[`admonish`] | link:#clang-mrdocs-doc-Block-children[`children`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Paragraph-static_kind[`static_kind`] |=== == Using Declarations [cols=1] |=== | Name | link:#clang-mrdocs-doc-Admonition-operator_assign-03[`operator=`] |=== == Description This paragraph represents an admonition, such as a note, tip, important, caution, or warning. Construct from `Admonish` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Admonition(link:#clang-mrdocs-doc-Admonish[Admonish] const admonish_ = Admonish::none) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *admonish_* | The object to construct from |=== Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Admonition-operator_assign-0f[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-Admonition-operator_assign-0f[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Admonition-operator_assign-01[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-Admonition-operator_assign-01[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Admonition-operator_eq-03[operator==](link:#clang-mrdocs-doc-Admonition[Admonition] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Admonition-operator_eq-03[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Admonition[Admonition] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Admonition-operator_3way-0bb[operator<=>](link:#clang-mrdocs-doc-Admonition[Admonition] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Admonition-operator_3way-0bb[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Admonition[Admonition] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-doc-Admonish[Admonish] admonish; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using Paragraph::operator=; ---- == Introduced Symbols [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Paragraph-operator_assign-05[clang::mrdocs::doc::Paragraph::operator=] | Assignment operator |=== A piece of block content == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Block : link:#clang-mrdocs-doc-Node[Node] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Node[Node]` | This is a variant‐like list element. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-Block-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Block-operator_eq-06[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Block-operator_3way-07[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] |=== == Protected Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-doc-Block-2constructor[`Block`] [.small]#[constructor]# |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Heading[`Heading`] | A manually specified section heading. | link:#clang-mrdocs-doc-Paragraph[`Paragraph`] | A sequence of text nodes. |=== == Description The top level is a list of blocks. There are two types of blocks: headings and paragraphs == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-Block-append-0e0[append](std::vector<Polymorphic<Text>> const& otherChildren); ---- [.small]#link:#clang-mrdocs-doc-Block-append-0e0[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-Block-append-02[append](std::vector<Polymorphic<Node>>&& blocks); ---- [.small]#link:#clang-mrdocs-doc-Block-append-02[_» more..._]# == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void append(std::vector<Polymorphic<Text>> const& otherChildren); ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void append(std::vector<Polymorphic<Node>>&& blocks); ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::derived_from<Text> T> T& emplace_back(T&& text); ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool empty() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool isBlock() const noexcept final; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Polymorphic<Text>> children; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Block( link:#clang-mrdocs-doc-NodeKind[NodeKind] const kind_, std::vector<Polymorphic<Text>> children_ = {}) noexcept; ---- The brief description == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Brief final : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Brief-2constructor-06[`Brief`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-doc-Brief-operator_assign-0d[`operator=`] | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-Brief-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Block-operator_eq-06[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Brief-operator_3way-06[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] | link:#clang-mrdocs-doc-Brief-copiedFrom[`copiedFrom`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Brief-static_kind[`static_kind`] |=== Constructors == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-doc-Brief-2constructor-09[Brief]() noexcept; ---- [.small]#link:#clang-mrdocs-doc-Brief-2constructor-09[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Brief-2constructor-05[Brief](link:#clang-mrdocs-doc-Brief[Brief] const& other) = default; ---- [.small]#link:#clang-mrdocs-doc-Brief-2constructor-05[_» more..._]# Construct from `string_view` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-doc-Brief-2constructor-03[Brief](std::string_view const text); ---- [.small]#link:#clang-mrdocs-doc-Brief-2constructor-03[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Brief() noexcept; ---- Copy constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Brief(link:#clang-mrdocs-doc-Brief[Brief] const& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Construct from `string_view` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Brief(std::string_view const text); ---- == Parameters [cols=2] |=== | Name | Description | *text* | The object to construct from |=== Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Copy assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Brief[Brief]& link:#clang-mrdocs-doc-Brief-operator_assign-07[operator=](link:#clang-mrdocs-doc-Brief[Brief] const& other) = default; ---- [.small]#link:#clang-mrdocs-doc-Brief-operator_assign-07[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Brief[Brief]& link:#clang-mrdocs-doc-Brief-operator_assign-0e[operator=](std::string_view const text) override; ---- [.small]#link:#clang-mrdocs-doc-Brief-operator_assign-0e[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Brief-operator_assign-05[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-Brief-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Brief-operator_assign-08[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-Brief-operator_assign-08[_» more..._]# Copy assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Brief[Brief]& operator=(link:#clang-mrdocs-doc-Brief[Brief] const& other) = default; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Brief[Brief]& operator=(std::string_view const text) override; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *text* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Brief-operator_3way-0c[operator<=>](link:#clang-mrdocs-doc-Brief[Brief] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Brief-operator_3way-0c[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Brief[Brief] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> copiedFrom; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static link:#clang-mrdocs-doc-NodeKind[NodeKind] static_kind = NodeKind::brief; ---- Preformatted source code. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Code final : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Code-2constructor[`Code`] [.small]#[constructor]# | Default constructor | link:#clang-mrdocs-doc-Code-operator_assign-0e[`operator=`] [.small]#[virtual]# | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-Code-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Code-operator_eq-0c[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Code-operator_3way-03[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Code-static_kind[`static_kind`] |=== == Using Declarations [cols=1] |=== | Name | link:#clang-mrdocs-doc-Code-operator_assign-08[`operator=`] |=== Default constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Code() noexcept; ---- Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Code-operator_assign-09[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-Code-operator_assign-09[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Code-operator_assign-00[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-Code-operator_assign-00[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Code-operator_eq-0e[operator==](link:#clang-mrdocs-doc-Code[Code] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Code-operator_eq-0e[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Code[Code] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Code-operator_3way-0a[operator<=>](link:#clang-mrdocs-doc-Code[Code] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Code-operator_3way-0a[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Code[Code] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::code; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using Paragraph::operator=; ---- == Introduced Symbols [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Paragraph-operator_assign-05[clang::mrdocs::doc::Paragraph::operator=] | Assignment operator |=== Documentation copied from another symbol. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct CopyDetails final : link:#clang-mrdocs-doc-Reference[Reference] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Reference[Reference]` | A reference to a symbol. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-CopyDetails-2constructor[`CopyDetails`] [.small]#[constructor]# | Construct from `string` | link:#clang-mrdocs-doc-CopyDetails-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Text-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-CopyDetails-operator_eq-06[`operator==`] | Equality operators | link:#clang-mrdocs-doc-CopyDetails-operator_3way-04[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Reference-id[`id`] | link:#clang-mrdocs-doc-Text-string[`string`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-CopyDetails-static_kind[`static_kind`] |=== Construct from `string` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CopyDetails(std::string string_ = std::string()) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *string_* | The object to construct from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-CopyDetails-operator_eq-0c[operator==](link:#clang-mrdocs-doc-CopyDetails[CopyDetails] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-CopyDetails-operator_eq-0c[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Reference-operator_eq-04[operator==](link:#clang-mrdocs-doc-Reference[Reference] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Reference-operator_eq-04[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Text-operator_eq-0f[operator==](link:#clang-mrdocs-doc-Text[Text] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Text-operator_eq-0f[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-CopyDetails[CopyDetails] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Reference[Reference] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Text[Text] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-CopyDetails-operator_3way-02[operator<=>](link:#clang-mrdocs-doc-CopyDetails[CopyDetails] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-CopyDetails-operator_3way-02[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Reference-operator_3way-0f[operator<=>](link:#clang-mrdocs-doc-Reference[Reference] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Reference-operator_3way-0f[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Text-operator_3way-02[operator<=>](link:#clang-mrdocs-doc-Text[Text] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Text-operator_3way-02[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-CopyDetails[CopyDetails] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Reference[Reference] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Text[Text] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::copy_details; ---- A manually specified section heading. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Heading final : link:#clang-mrdocs-doc-Block[Block] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Block[Block]` | A piece of block content |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Heading-2constructor[`Heading`] [.small]#[constructor]# | Construct from `string` | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-Heading-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Heading-operator_eq-0d[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Heading-operator_3way-04[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] | link:#clang-mrdocs-doc-Heading-string[`string`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Heading-static_kind[`static_kind`] |=== Construct from `string` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Heading(std::string string_ = std::string()) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *string_* | The object to construct from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Heading-operator_eq-0b[operator==](link:#clang-mrdocs-doc-Heading[Heading] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Heading-operator_eq-0b[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Heading[Heading] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Heading-operator_3way-09[operator<=>](link:#clang-mrdocs-doc-Heading[Heading] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Heading-operator_3way-09[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Heading[Heading] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string string; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::heading; ---- A hyperlink. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Link final : link:#clang-mrdocs-doc-Text[Text] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Text[Text]` | A Node containing a string of text. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Link-2constructor[`Link`] [.small]#[constructor]# | | link:#clang-mrdocs-doc-Link-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Text-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Link-operator_eq-0d[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Link-operator_3way-0d[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Link-href[`href`] | link:#clang-mrdocs-doc-Text-string[`string`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Link-static_kind[`static_kind`] |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Link( std::string string_ = std::string(), std::string href_ = std::string()) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Link-operator_eq-02[operator==](link:#clang-mrdocs-doc-Link[Link] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Link-operator_eq-02[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Text-operator_eq-0f[operator==](link:#clang-mrdocs-doc-Text[Text] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Text-operator_eq-0f[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Link[Link] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Text[Text] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Link-operator_3way-04[operator<=>](link:#clang-mrdocs-doc-Link[Link] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Link-operator_3way-04[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Text-operator_3way-02[operator<=>](link:#clang-mrdocs-doc-Text[Text] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Text-operator_3way-02[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Link[Link] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Text[Text] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string href; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::link; ---- An item in a list == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ListItem final : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-ListItem-2constructor[`ListItem`] [.small]#[constructor]# | Default constructor | link:#clang-mrdocs-doc-ListItem-operator_assign-0e2[`operator=`] [.small]#[virtual]# | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-ListItem-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-ListItem-operator_eq-04[`operator==`] | Equality operators | link:#clang-mrdocs-doc-ListItem-operator_3way-07[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-ListItem-static_kind[`static_kind`] |=== == Using Declarations [cols=1] |=== | Name | link:#clang-mrdocs-doc-ListItem-operator_assign-0eb[`operator=`] |=== Default constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ListItem(); ---- Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-ListItem-operator_assign-02[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-ListItem-operator_assign-02[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-ListItem-operator_assign-0a[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-ListItem-operator_assign-0a[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-ListItem-operator_eq-09[operator==](link:#clang-mrdocs-doc-ListItem[ListItem] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-ListItem-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-ListItem[ListItem] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-ListItem-operator_3way-0e[operator<=>](link:#clang-mrdocs-doc-ListItem[ListItem] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-ListItem-operator_3way-0e[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-ListItem[ListItem] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::list_item; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using Paragraph::operator=; ---- == Introduced Symbols [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Paragraph-operator_assign-05[clang::mrdocs::doc::Paragraph::operator=] | Assignment operator |=== This is a variant‐like list element. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Node; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Node-2constructor[`Node`] [.small]#[constructor]# | Construct from `NodeKind` | link:#clang-mrdocs-doc-Node-2destructor[`~Node`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-doc-Node-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Node-operator_eq[`operator==`] | Equality operator | link:#clang-mrdocs-doc-Node-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Block[`Block`] | A piece of block content | link:#clang-mrdocs-doc-Text[`Text`] | A Node containing a string of text. |=== == Description There are two types of nodes: text and block. ‐ The javadoc is a list of blocks. ‐ A block contains a list of text elements. ‐ A text element contains a string. Construct from `NodeKind` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Node(link:#clang-mrdocs-doc-NodeKind[NodeKind] const kind_) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *kind_* | The object to construct from |=== Destructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr virtual ~Node() = default; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool isBlock() const noexcept = 0; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isText() const noexcept; ---- Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-doc-NodeKind[NodeKind] Kind; ---- A sequence of text nodes. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Paragraph : link:#clang-mrdocs-doc-Block[Block] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Block[Block]` | A piece of block content |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Paragraph-2constructor-0c[`Paragraph`] [.small]#[constructor]# | Default constructor | link:#clang-mrdocs-doc-Paragraph-operator_assign-0d[`operator=`] | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-Paragraph-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Block-operator_eq-06[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Paragraph-operator_3way-04[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Paragraph-static_kind[`static_kind`] |=== == Protected Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-doc-Paragraph-2constructor-01[`Paragraph`] [.small]#[constructor]# |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Admonition[`Admonition`] | An admonition. | link:#clang-mrdocs-doc-Brief[`Brief`] | The brief description | link:#clang-mrdocs-doc-Code[`Code`] | Preformatted source code. | link:#clang-mrdocs-doc-ListItem[`ListItem`] | An item in a list | link:#clang-mrdocs-doc-Param[`Param`] | Documentation for a function parameter | link:#clang-mrdocs-doc-Postcondition[`Postcondition`] | | link:#clang-mrdocs-doc-Precondition[`Precondition`] | | link:#clang-mrdocs-doc-Returns[`Returns`] | Documentation for a function return type | link:#clang-mrdocs-doc-See[`See`] | A | link:#clang-mrdocs-doc-TParam[`TParam`] | Documentation for a template parameter | link:#clang-mrdocs-doc-Throws[`Throws`] | Documentation for a function parameter | link:#clang-mrdocs-doc-UnorderedList[`UnorderedList`] | A list of list items |=== Default constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Paragraph() noexcept; ---- Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const&) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&&) = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::paragraph; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Paragraph( link:#clang-mrdocs-doc-NodeKind[NodeKind] const kind, std::vector<Polymorphic<Text>> children_ = {}) noexcept; ---- Documentation for a function parameter == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Param final : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Param-2constructor-0c[`Param`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-doc-Param-operator_assign-06[`operator=`] [.small]#[virtual]# | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-Param-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Param-operator_eq-09[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Param-operator_3way-0d[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] | link:#clang-mrdocs-doc-Param-direction[`direction`] | link:#clang-mrdocs-doc-Param-name[`name`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Param-static_kind[`static_kind`] |=== Constructors == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Construct from `Paragraph` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-doc-Param-2constructor-09[Param](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& other); ---- [.small]#link:#clang-mrdocs-doc-Param-2constructor-09[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-doc-Param-2constructor-05b[Param]( std::string_view const name, std::string_view const text); ---- [.small]#link:#clang-mrdocs-doc-Param-2constructor-05b[_» more..._]# Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-doc-Param-2constructor-05c[Param]( std::string name_ = std::string(), link:#clang-mrdocs-doc-Paragraph[Paragraph] details_ = Paragraph(), link:#clang-mrdocs-doc-ParamDirection[ParamDirection] const direction_ = ParamDirection::none); ---- [.small]#link:#clang-mrdocs-doc-Param-2constructor-05c[_» more..._]# Construct from `Paragraph` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Param(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& other); ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Param( std::string_view const name, std::string_view const text); ---- Constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Param( std::string name_ = std::string(), link:#clang-mrdocs-doc-Paragraph[Paragraph] details_ = Paragraph(), link:#clang-mrdocs-doc-ParamDirection[ParamDirection] const direction_ = ParamDirection::none); ---- == Parameters [cols=2] |=== | Name | Description | *name_* | The object to construct from | *details_* | A sequence of text nodes. | *direction_* | Parameter pass direction. |=== Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Param[Param]& link:#clang-mrdocs-doc-Param-operator_assign-0e[operator=](std::string_view const text) override; ---- [.small]#link:#clang-mrdocs-doc-Param-operator_assign-0e[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Param-operator_assign-087[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-Param-operator_assign-087[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Param-operator_assign-08a[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-Param-operator_assign-08a[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Param[Param]& operator=(std::string_view const text) override; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *text* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Param-operator_eq-01[operator==](link:#clang-mrdocs-doc-Param[Param] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Param-operator_eq-01[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Param[Param] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Param-operator_3way-0b[operator<=>](link:#clang-mrdocs-doc-Param[Param] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Param-operator_3way-0b[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Param[Param] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-doc-ParamDirection[ParamDirection] direction; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string name; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::param; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Postcondition : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Postcondition-2constructor[`Postcondition`] [.small]#[constructor]# | Construct from `Paragraph` | link:#clang-mrdocs-doc-Postcondition-operator_assign-0d[`operator=`] [.small]#[virtual]# | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-Postcondition-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Postcondition-operator_eq-09[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Postcondition-operator_3way-06[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Postcondition-static_kind[`static_kind`] |=== == Using Declarations [cols=1] |=== | Name | link:#clang-mrdocs-doc-Postcondition-operator_assign-05[`operator=`] |=== Construct from `Paragraph` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Postcondition(link:#clang-mrdocs-doc-Paragraph[Paragraph] details_ = Paragraph()); ---- == Parameters [cols=2] |=== | Name | Description | *details_* | The object to construct from |=== Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Postcondition-operator_assign-07[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-Postcondition-operator_assign-07[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Postcondition-operator_assign-02[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-Postcondition-operator_assign-02[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Postcondition-operator_eq-0c[operator==](link:#clang-mrdocs-doc-Postcondition[Postcondition] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Postcondition-operator_eq-0c[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Postcondition[Postcondition] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Postcondition-operator_3way-0e[operator<=>](link:#clang-mrdocs-doc-Postcondition[Postcondition] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Postcondition-operator_3way-0e[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Postcondition[Postcondition] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::postcondition; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using Paragraph::operator=; ---- == Introduced Symbols [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Paragraph-operator_assign-05[clang::mrdocs::doc::Paragraph::operator=] | Assignment operator |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Precondition final : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Precondition-2constructor[`Precondition`] [.small]#[constructor]# | Construct from `Paragraph` | link:#clang-mrdocs-doc-Precondition-operator_assign-0c[`operator=`] [.small]#[virtual]# | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-Precondition-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Precondition-operator_eq-09[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Precondition-operator_3way-07[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Precondition-static_kind[`static_kind`] |=== == Using Declarations [cols=1] |=== | Name | link:#clang-mrdocs-doc-Precondition-operator_assign-0b[`operator=`] |=== Construct from `Paragraph` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Precondition(link:#clang-mrdocs-doc-Paragraph[Paragraph] details_ = Paragraph()); ---- == Parameters [cols=2] |=== | Name | Description | *details_* | The object to construct from |=== Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Precondition-operator_assign-01[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-Precondition-operator_assign-01[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Precondition-operator_assign-07[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-Precondition-operator_assign-07[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Precondition-operator_eq-05[operator==](link:#clang-mrdocs-doc-Precondition[Precondition] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Precondition-operator_eq-05[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Precondition[Precondition] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Precondition-operator_3way-02[operator<=>](link:#clang-mrdocs-doc-Precondition[Precondition] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Precondition-operator_3way-02[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Precondition[Precondition] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static link:#clang-mrdocs-doc-NodeKind[NodeKind] static_kind = NodeKind::precondition; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using Paragraph::operator=; ---- == Introduced Symbols [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Paragraph-operator_assign-05[clang::mrdocs::doc::Paragraph::operator=] | Assignment operator |=== A reference to a symbol. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Reference : link:#clang-mrdocs-doc-Text[Text] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Text[Text]` | A Node containing a string of text. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Reference-2constructor-06[`Reference`] [.small]#[constructor]# | Construct from `string` | link:#clang-mrdocs-doc-Reference-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Text-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Reference-operator_eq-03[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Reference-operator_3way-0d[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Reference-id[`id`] | link:#clang-mrdocs-doc-Text-string[`string`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Reference-static_kind[`static_kind`] |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Reference-2constructor-03[`Reference`] [.small]#[constructor]# | Constructor |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-CopyDetails[`CopyDetails`] | Documentation copied from another symbol. |=== Construct from `string` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Reference(std::string string_ = std::string()) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *string_* | The object to construct from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Reference-operator_eq-04[operator==](link:#clang-mrdocs-doc-Reference[Reference] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Reference-operator_eq-04[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Text-operator_eq-0f[operator==](link:#clang-mrdocs-doc-Text[Text] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Text-operator_eq-0f[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Reference[Reference] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Text[Text] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Reference-operator_3way-0f[operator<=>](link:#clang-mrdocs-doc-Reference[Reference] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Reference-operator_3way-0f[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Text-operator_3way-02[operator<=>](link:#clang-mrdocs-doc-Text[Text] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Text-operator_3way-02[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Reference[Reference] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Text[Text] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-SymbolID[SymbolID] id = = SymbolID::invalid; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::reference; ---- Constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Reference( std::string string_, link:#clang-mrdocs-doc-NodeKind[NodeKind] const kind_) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *string_* | The object to construct from | *kind_* | The kind of node. |=== Documentation for a function return type == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Returns final : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Returns-2constructor-05[`Returns`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-doc-Returns-operator_assign-075[`operator=`] [.small]#[virtual]# | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-Returns-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Returns-operator_eq-06[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Returns-operator_3way-03[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Returns-static_kind[`static_kind`] |=== Constructors == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-doc-Returns-2constructor-03[Returns](); ---- [.small]#link:#clang-mrdocs-doc-Returns-2constructor-03[_» more..._]# Construct from `string_view` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-doc-Returns-2constructor-08[Returns](std::string_view const text); ---- [.small]#link:#clang-mrdocs-doc-Returns-2constructor-08[_» more..._]# Construct from `Paragraph` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-doc-Returns-2constructor-0f[Returns](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& other); ---- [.small]#link:#clang-mrdocs-doc-Returns-2constructor-0f[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Returns(); ---- Construct from `string_view` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Returns(std::string_view const text); ---- == Parameters [cols=2] |=== | Name | Description | *text* | The object to construct from |=== Construct from `Paragraph` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Returns(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& other); ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Returns[Returns]& link:#clang-mrdocs-doc-Returns-operator_assign-0c[operator=](std::string_view const text) override; ---- [.small]#link:#clang-mrdocs-doc-Returns-operator_assign-0c[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Returns-operator_assign-073[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-Returns-operator_assign-073[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Returns-operator_assign-00[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-Returns-operator_assign-00[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Returns[Returns]& operator=(std::string_view const text) override; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *text* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Returns-operator_eq-02[operator==](link:#clang-mrdocs-doc-Returns[Returns] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Returns-operator_eq-02[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Returns[Returns] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Returns-operator_3way-09[operator<=>](link:#clang-mrdocs-doc-Returns[Returns] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Returns-operator_3way-09[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Returns[Returns] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static link:#clang-mrdocs-doc-NodeKind[NodeKind] static_kind = NodeKind::returns; ---- A == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct See final : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-See-2constructor[`See`] [.small]#[constructor]# | Default constructor | link:#clang-mrdocs-doc-See-operator_assign-0ba[`operator=`] [.small]#[virtual]# | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-See-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-See-operator_eq-0c[`operator==`] | Equality operators | link:#clang-mrdocs-doc-See-operator_3way-0e[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-See-static_kind[`static_kind`] |=== == Using Declarations [cols=1] |=== | Name | link:#clang-mrdocs-doc-See-operator_assign-0e[`operator=`] |=== == See Also paragraph Default constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- See(); ---- Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-See-operator_assign-0d[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-See-operator_assign-0d[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-See-operator_assign-0b7[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-See-operator_assign-0b7[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-See-operator_eq-00[operator==](link:#clang-mrdocs-doc-See[See] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-See-operator_eq-00[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-See[See] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-See-operator_3way-0a[operator<=>](link:#clang-mrdocs-doc-See[See] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-See-operator_3way-0a[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-See[See] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::see; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using Paragraph::operator=; ---- == Introduced Symbols [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Paragraph-operator_assign-05[clang::mrdocs::doc::Paragraph::operator=] | Assignment operator |=== A piece of styled text. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Styled final : link:#clang-mrdocs-doc-Text[Text] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Text[Text]` | A Node containing a string of text. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Styled-2constructor[`Styled`] [.small]#[constructor]# | Constructor | link:#clang-mrdocs-doc-Styled-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Text-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Styled-operator_eq-01[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Styled-operator_3way-0c0[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Text-string[`string`] | link:#clang-mrdocs-doc-Styled-style[`style`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Styled-static_kind[`static_kind`] |=== Constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Styled( std::string string_ = std::string(), link:#clang-mrdocs-doc-Style[Style] style_ = Style::none) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *string_* | The object to construct from | *style_* | The text style. |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Styled-operator_eq-0f[operator==](link:#clang-mrdocs-doc-Styled[Styled] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Styled-operator_eq-0f[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Text-operator_eq-0f[operator==](link:#clang-mrdocs-doc-Text[Text] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Text-operator_eq-0f[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Styled[Styled] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Text[Text] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Styled-operator_3way-0cc[operator<=>](link:#clang-mrdocs-doc-Styled[Styled] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Styled-operator_3way-0cc[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Text-operator_3way-02[operator<=>](link:#clang-mrdocs-doc-Text[Text] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Text-operator_3way-02[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Styled[Styled] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Text[Text] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-doc-Style[Style] style; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::styled; ---- Documentation for a template parameter == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TParam final : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-TParam-2constructor[`TParam`] [.small]#[constructor]# | Default constructor | link:#clang-mrdocs-doc-TParam-operator_assign-081[`operator=`] [.small]#[virtual]# | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-TParam-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-TParam-operator_eq-06[`operator==`] | Equality operators | link:#clang-mrdocs-doc-TParam-operator_3way-08[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] | link:#clang-mrdocs-doc-TParam-name[`name`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-TParam-static_kind[`static_kind`] |=== == Using Declarations [cols=1] |=== | Name | link:#clang-mrdocs-doc-TParam-operator_assign-09[`operator=`] |=== Default constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- TParam(); ---- Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-TParam-operator_assign-01[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-TParam-operator_assign-01[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-TParam-operator_assign-088[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-TParam-operator_assign-088[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-TParam-operator_eq-0d[operator==](link:#clang-mrdocs-doc-TParam[TParam] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-TParam-operator_eq-0d[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-TParam[TParam] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-TParam-operator_3way-05[operator<=>](link:#clang-mrdocs-doc-TParam[TParam] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-TParam-operator_3way-05[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-TParam[TParam] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string name; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static link:#clang-mrdocs-doc-NodeKind[NodeKind] static_kind = NodeKind::tparam; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using Paragraph::operator=; ---- == Introduced Symbols [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Paragraph-operator_assign-05[clang::mrdocs::doc::Paragraph::operator=] | Assignment operator |=== A Node containing a string of text. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Text : link:#clang-mrdocs-doc-Node[Node] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Node[Node]` | This is a variant‐like list element. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Text-2constructor-0b[`Text`] [.small]#[constructor]# | Construct from `string` | link:#clang-mrdocs-doc-Text-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Text-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Text-operator_eq-01[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Text-operator_3way-09[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Text-string[`string`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Text-static_kind[`static_kind`] |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Text-2constructor-01[`Text`] [.small]#[constructor]# | Constructor |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Link[`Link`] | A hyperlink. | link:#clang-mrdocs-doc-Reference[`Reference`] | A reference to a symbol. | link:#clang-mrdocs-doc-Styled[`Styled`] | A piece of styled text. |=== == Description There will be no newlines in the text. Otherwise, this would be represented as multiple text nodes within a Paragraph node. Construct from `string` == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Text(std::string string_ = std::string()) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *string_* | The object to construct from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool isBlock() const noexcept final; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Text-operator_eq-0f[operator==](link:#clang-mrdocs-doc-Text[Text] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Text-operator_eq-0f[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Text[Text] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Text-operator_3way-02[operator<=>](link:#clang-mrdocs-doc-Text[Text] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Text-operator_3way-02[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Text[Text] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string string; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::text; ---- Constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Text( std::string string_, link:#clang-mrdocs-doc-NodeKind[NodeKind] kind_); ---- == Parameters [cols=2] |=== | Name | Description | *string_* | The object to construct from | *kind_* | The kind of node. |=== Documentation for a function parameter == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Throws final : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Throws-2constructor[`Throws`] [.small]#[constructor]# | Constructor | link:#clang-mrdocs-doc-Throws-operator_assign-01[`operator=`] [.small]#[virtual]# | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-Throws-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-Throws-operator_eq-07[`operator==`] | Equality operators | link:#clang-mrdocs-doc-Throws-operator_3way-09[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] | link:#clang-mrdocs-doc-Throws-exception[`exception`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Throws-static_kind[`static_kind`] |=== == Using Declarations [cols=1] |=== | Name | link:#clang-mrdocs-doc-Throws-operator_assign-09[`operator=`] |=== Constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Throws( std::string exception_ = std::string(), link:#clang-mrdocs-doc-Paragraph[Paragraph] details_ = Paragraph()); ---- == Parameters [cols=2] |=== | Name | Description | *exception_* | The object to construct from | *details_* | A sequence of text nodes. |=== Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Throws-operator_assign-0f[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-Throws-operator_assign-0f[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Throws-operator_assign-0c[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-Throws-operator_assign-0c[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Throws-operator_eq-05[operator==](link:#clang-mrdocs-doc-Throws[Throws] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Throws-operator_eq-05[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Throws[Throws] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Throws-operator_3way-02[operator<=>](link:#clang-mrdocs-doc-Throws[Throws] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Throws-operator_3way-02[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Throws[Throws] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-doc-Reference[Reference] exception; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static link:#clang-mrdocs-doc-NodeKind[NodeKind] static_kind = NodeKind::throws; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using Paragraph::operator=; ---- == Introduced Symbols [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Paragraph-operator_assign-05[clang::mrdocs::doc::Paragraph::operator=] | Assignment operator |=== A list of list items == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct UnorderedList final : link:#clang-mrdocs-doc-Paragraph[Paragraph] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-doc-Paragraph[Paragraph]` | A sequence of text nodes. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-UnorderedList-2constructor[`UnorderedList`] [.small]#[constructor]# | Default constructor | link:#clang-mrdocs-doc-UnorderedList-operator_assign-0f[`operator=`] [.small]#[virtual]# | Assignment operators | link:#clang-mrdocs-doc-Block-append-0ec[`append`] | | link:#clang-mrdocs-doc-Block-emplace_back[`emplace_back`] | | link:#clang-mrdocs-doc-Block-empty[`empty`] | | link:#clang-mrdocs-doc-UnorderedList-equals[`equals`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Block-isBlock[`isBlock`] [.small]#[virtual]# | | link:#clang-mrdocs-doc-Node-isText[`isText`] | | link:#clang-mrdocs-doc-UnorderedList-operator_eq-06[`operator==`] | Equality operators | link:#clang-mrdocs-doc-UnorderedList-operator_3way-04[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-Node-Kind[`Kind`] | link:#clang-mrdocs-doc-Block-children[`children`] | link:#clang-mrdocs-doc-UnorderedList-items[`items`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-doc-UnorderedList-static_kind[`static_kind`] |=== == Using Declarations [cols=1] |=== | Name | link:#clang-mrdocs-doc-UnorderedList-operator_assign-0c[`operator=`] |=== Default constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- UnorderedList(); ---- Assignment operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-Paragraph-operator_assign-05[operator=](std::string_view str); ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-UnorderedList-operator_assign-05[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- [.small]#link:#clang-mrdocs-doc-UnorderedList-operator_assign-05[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& link:#clang-mrdocs-doc-UnorderedList-operator_assign-04[operator=](link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- [.small]#link:#clang-mrdocs-doc-UnorderedList-operator_assign-04[_» more..._]# Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(std::string_view str); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *str* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& value) noexcept(false) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-doc-Paragraph[Paragraph]& operator=(link:#clang-mrdocs-doc-Paragraph[Paragraph]&& value) = default; ---- == Return Value A sequence of text nodes. == Parameters [cols=2] |=== | Name | Description | *value* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool equals(link:#clang-mrdocs-doc-Node[Node] const& other) const noexcept override; ---- Equality operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-UnorderedList-operator_eq-01[operator==](link:#clang-mrdocs-doc-UnorderedList[UnorderedList] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-UnorderedList-operator_eq-01[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-doc-Block-operator_eq-09[operator==](link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_eq-09[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-doc-Node-operator_eq[operator==](link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_eq[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-UnorderedList[UnorderedList] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-doc-Block[Block] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-doc-Node[Node] const& rhs) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-UnorderedList-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-UnorderedList[UnorderedList] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-UnorderedList-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Paragraph-operator_3way-07[operator<=>](link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Paragraph-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-doc-Block-operator_3way-03[operator<=>](link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- [.small]#link:#clang-mrdocs-doc-Block-operator_3way-03[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-doc-Node-operator_3way[operator<=>](link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-doc-Node-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-UnorderedList[UnorderedList] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Paragraph[Paragraph] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-doc-Block[Block] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-doc-Node[Node] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<ListItem> items; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static auto static_kind = NodeKind::unordered_list; ---- == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using Paragraph::operator=; ---- == Introduced Symbols [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-Paragraph-operator_assign-05[clang::mrdocs::doc::Paragraph::operator=] | Assignment operator |=== An admonishment style. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class Admonish : int; ---- == Members [cols=2] |=== | Name | Description |`none` |No admonishment |`note` |A general note |`tip` |A tip to the reader |`important` |Something important |`caution` |A caution admonishment |`warning` |A warning admonishment |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-toString-0f[`toString`] | Return the name of the Admonish as a string. |=== The kind of node. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class NodeKind : int; ---- == Members [cols=2] |=== | Name | Description |`text` |A text tag |`admonition` |An admonition tag |`brief` |A brief tag |`code` |A code tag |`heading` |A heading tag |`link` |A link tag |`list_item` |A list_item tag |`unordered_list` |An unordered_list tag |`paragraph` |A paragraph tag |`param` |A param tag |`returns` |A returns tag |`styled` |A styled tag |`tparam` |A tparam tag |`reference` |A reference tag |`copy_details` |A copy_details tag |`throws` |A throws tag |`details` |A details tag |`see` |A see tag |`precondition` |A general tag. |`postcondition` |A postcondition tag. |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-toString-00b[`toString`] | Return the name of the NodeKind as a string. |=== == Description This includes tags and block types. Some of the available tags are: * * `{}` * * * * * * * * * `{}` * { [,cpp] ---- reference}` @li `{@linkplain reference}` @li `{@value #STATIC_FIELD}` @li `{@code literal}` @li `{@literal literal}` @li `{@serial literal}` @li `{@serialData literal}` @li `{@serialField literal}` Doxygen also introduces a number of additional tags on top of the the doc comment specification. @note When a new tag is added, the `visit` function overloads must be updated to handle the new tag. @see https://en.wikipedia.org/wiki/Javadoc[Javadoc - Wikipedia] @see https://docs.oracle.com/javase/1.5.0/docs/tooldocs/solaris/javadoc.html[Javadoc Documentation] @see https://docs.oracle.com/en/java/javase/13/docs/specs/javadoc/doc-comment-spec.html[Doc Comment Specification] @see https://www.oracle.com/java/technologies/javase/javadoc-tool.html[Javadoc Tool] @see https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html[How to Write Doc Comments] @see https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javadoc.html[Javadoc Package] @see https://web.archive.org/web/20170714215721/http://agile.csc.ncsu.edu:80/SEMaterials/tutorials/javadoc[Javadoc Tutorial] @see https://en.wikipedia.org/wiki/Doxygen[Doxygen - Wikipedia] @see https://www.doxygen.nl/manual/commands.html[Doxygen Special Tags] ---- == Exceptions [cols=2] |=== | Name | Thrown on | `classname` | description` | `classname` | description` |=== == Return Value description` == Parameters [cols=2] |=== | Name | Description | *name* | description` |=== == See Also reference` Parameter pass direction. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class ParamDirection : int; ---- == Members [cols=2] |=== | Name | Description |`none` |No direction specified |`in` |Parameter is passed |`out` |Parameter is passed back to the caller |`inout` |Parameter is passed and passed back to the caller |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-toString-0b[`toString`] | Return the name of the ParamDirection as a string. |=== Which parts of the documentation to copy. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class Parts : int; ---- == Members [cols=2] |=== | Name | Description |`all` |Copy the brief and the description |`brief` |Copy the brief |`description` |Copy the description |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-toString-04[`toString`] | Return the name of the Parts as a string. |=== == Description * `all`: copy the brief and the description. * `brief`: only copy the brief. * `description`: only copy the description. The text style. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class Style : int; ---- == Members [cols=2] |=== | Name | Description |`none` |No style |`mono` |Monospaced text |`bold` |Bold text |`italic` |Italic text |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-doc-toString-003[`toString`] | Return the name of the link:#clang-mrdocs-doc-Style[`Style`] as a string. |=== `tag_invoke` overloads == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Return the Admonish from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-037[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Admonish[Admonish] const kind); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-037[_» more..._]# Return the NodeKind from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0500[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-NodeKind[NodeKind] const kind); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0500[_» more..._]# Return the ParamDirection from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0cc[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-ParamDirection[ParamDirection] const kind); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0cc[_» more..._]# Return the Parts from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-04ea[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Parts[Parts] const kind); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-04ea[_» more..._]# Return the link:#clang-mrdocs-doc-Style[`Style`] from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0661[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Style[Style] const kind); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0661[_» more..._]# Return the link:#clang-mrdocs-doc-Admonition[`Admonition`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0ff[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Admonition[Admonition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0ff[_» more..._]# Return the link:#clang-mrdocs-doc-Block[`Block`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-045[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Block[Block] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-045[_» more..._]# Return the link:#clang-mrdocs-doc-Brief[`Brief`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-002[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Brief[Brief] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-002[_» more..._]# Return the link:#clang-mrdocs-doc-Code[`Code`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0d[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Code[Code] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0d[_» more..._]# Return the link:#clang-mrdocs-doc-CopyDetails[`CopyDetails`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0f4[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-CopyDetails[CopyDetails] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0f4[_» more..._]# Return the link:#clang-mrdocs-doc-Heading[`Heading`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0a1[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Heading[Heading] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0a1[_» more..._]# Return the link:#clang-mrdocs-doc-Link[`Link`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-067[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Link[Link] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-067[_» more..._]# Return the link:#clang-mrdocs-doc-ListItem[`ListItem`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0fa[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-ListItem[ListItem] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0fa[_» more..._]# Return the link:#clang-mrdocs-doc-Node[`Node`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0c2[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Node[Node] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0c2[_» more..._]# Return the link:#clang-mrdocs-doc-Paragraph[`Paragraph`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0a6a[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Paragraph[Paragraph] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0a6a[_» more..._]# Return the link:#clang-mrdocs-doc-Param[`Param`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-014[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Param[Param] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-014[_» more..._]# Return the link:#clang-mrdocs-doc-Postcondition[`Postcondition`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-06b[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Postcondition[Postcondition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-06b[_» more..._]# Return the link:#clang-mrdocs-doc-Precondition[`Precondition`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-029[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Precondition[Precondition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-029[_» more..._]# Return the link:#clang-mrdocs-doc-Reference[`Reference`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-02d[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Reference[Reference] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-02d[_» more..._]# Return the link:#clang-mrdocs-doc-Returns[`Returns`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-073[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Returns[Returns] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-073[_» more..._]# Return the link:#clang-mrdocs-doc-See[`See`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-07f[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-See[See] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-07f[_» more..._]# Return the link:#clang-mrdocs-doc-Styled[`Styled`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-04eb[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Styled[Styled] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-04eb[_» more..._]# Return the link:#clang-mrdocs-doc-TParam[`TParam`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-09c[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-TParam[TParam] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-09c[_» more..._]# Return the link:#clang-mrdocs-doc-Text[`Text`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0b9[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Text[Text] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0b9[_» more..._]# Return the link:#clang-mrdocs-doc-Throws[`Throws`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0ae[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Throws[Throws] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0ae[_» more..._]# Return the link:#clang-mrdocs-doc-UnorderedList[`UnorderedList`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-doc-tag_invoke-0a4[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-UnorderedList[UnorderedList] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0a4[_» more..._]# Map the link:#clang-mrdocs-doc-Node[`Node`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-091[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, link:#clang-mrdocs-doc-Node[Node] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-091[_» more..._]# Map the link:#clang-mrdocs-doc-Admonition[`Admonition`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-096[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Admonition[Admonition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-096[_» more..._]# Map the link:#clang-mrdocs-doc-Block[`Block`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-01a[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Block[Block] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-01a[_» more..._]# Map the link:#clang-mrdocs-doc-Brief[`Brief`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-081[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Brief[Brief] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-081[_» more..._]# Map the link:#clang-mrdocs-doc-Code[`Code`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-013[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Code[Code] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-013[_» more..._]# Map the link:#clang-mrdocs-doc-CopyDetails[`CopyDetails`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-066c[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-CopyDetails[CopyDetails] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-066c[_» more..._]# Map the link:#clang-mrdocs-doc-Heading[`Heading`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-0c4[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Heading[Heading] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0c4[_» more..._]# Map the link:#clang-mrdocs-doc-Link[`Link`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-03d[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Link[Link] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-03d[_» more..._]# Map the link:#clang-mrdocs-doc-ListItem[`ListItem`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-00e[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-ListItem[ListItem] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-00e[_» more..._]# Map the link:#clang-mrdocs-doc-Paragraph[`Paragraph`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-09d[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Paragraph[Paragraph] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-09d[_» more..._]# Map the link:#clang-mrdocs-doc-Param[`Param`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-0c8[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Param[Param] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0c8[_» more..._]# Map the link:#clang-mrdocs-doc-Postcondition[`Postcondition`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-032[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Postcondition[Postcondition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-032[_» more..._]# Map the link:#clang-mrdocs-doc-Precondition[`Precondition`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-0a68[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Precondition[Precondition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0a68[_» more..._]# Map the link:#clang-mrdocs-doc-Reference[`Reference`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-04d[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Reference[Reference] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-04d[_» more..._]# Map the link:#clang-mrdocs-doc-Returns[`Returns`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-076[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Returns[Returns] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-076[_» more..._]# Map the link:#clang-mrdocs-doc-See[`See`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-0e[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-See[See] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0e[_» more..._]# Map the link:#clang-mrdocs-doc-Styled[`Styled`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-0ba[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Styled[Styled] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0ba[_» more..._]# Map the link:#clang-mrdocs-doc-TParam[`TParam`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-0ab[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-TParam[TParam] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0ab[_» more..._]# Map the link:#clang-mrdocs-doc-Text[`Text`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-0f5[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Text[Text] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-0f5[_» more..._]# Map the link:#clang-mrdocs-doc-Throws[`Throws`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-010[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Throws[Throws] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-010[_» more..._]# Map the link:#clang-mrdocs-doc-UnorderedList[`UnorderedList`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-doc-tag_invoke-08e[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-UnorderedList[UnorderedList] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-08e[_» more..._]# Map the Polymorphic Node as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class IO, link:#clang-mrdocs-polymorphic_storage_for[polymorphic_storage_for<Node>] NodeTy> void link:#clang-mrdocs-doc-tag_invoke-000[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], IO& io, NodeTy const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-doc-tag_invoke-000[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *v* | The output value. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. | *io* | The output parameter to receive the dom::Object. | *t* | The tag. |=== Return the Admonish from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Admonish[Admonish] const kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | An admonishment style. |=== Return the NodeKind from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-NodeKind[NodeKind] const kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | The kind of node. |=== Return the ParamDirection from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-ParamDirection[ParamDirection] const kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | Parameter pass direction. |=== Return the Parts from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Parts[Parts] const kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | Which parts of the documentation to copy. |=== Return the link:#clang-mrdocs-doc-Style[`Style`] from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Style[Style] const kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | The text style. |=== Return the link:#clang-mrdocs-doc-Admonition[`Admonition`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Admonition[Admonition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | An admonition. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Block[`Block`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Block[Block] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A piece of block content | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Brief[`Brief`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Brief[Brief] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | The brief description | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Code[`Code`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Code[Code] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Preformatted source code. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-CopyDetails[`CopyDetails`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-CopyDetails[CopyDetails] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | The output value. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Return the link:#clang-mrdocs-doc-Heading[`Heading`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Heading[Heading] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A manually specified section heading. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Link[`Link`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Link[Link] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A hyperlink. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-ListItem[`ListItem`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-ListItem[ListItem] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | An item in a list | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Node[`Node`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Node[Node] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | This is a variant‐like list element. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Paragraph[`Paragraph`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Paragraph[Paragraph] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A sequence of text nodes. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Param[`Param`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Param[Param] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Documentation for a function parameter | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Postcondition[`Postcondition`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Postcondition[Postcondition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | The value to assign to. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Return the link:#clang-mrdocs-doc-Precondition[`Precondition`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Precondition[Precondition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | The value to assign to. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Return the link:#clang-mrdocs-doc-Reference[`Reference`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Reference[Reference] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A reference to a symbol. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Returns[`Returns`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Returns[Returns] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Documentation for a function return type | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-See[`See`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-See[See] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Styled[`Styled`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Styled[Styled] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A piece of styled text. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-TParam[`TParam`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-TParam[TParam] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Documentation for a template parameter | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Text[`Text`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Text[Text] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A Node containing a string of text. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-Throws[`Throws`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-Throws[Throws] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Documentation for a function parameter | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-doc-UnorderedList[`UnorderedList`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-doc-UnorderedList[UnorderedList] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A list of list items | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Map the link:#clang-mrdocs-doc-Node[`Node`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, link:#clang-mrdocs-doc-Node[Node] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *io* | The output parameter to receive the dom::Object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Admonition[`Admonition`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Admonition[Admonition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Block[`Block`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Block[Block] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Brief[`Brief`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Brief[Brief] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Code[`Code`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Code[Code] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-CopyDetails[`CopyDetails`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-CopyDetails[CopyDetails] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Heading[`Heading`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Heading[Heading] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Link[`Link`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Link[Link] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-ListItem[`ListItem`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-ListItem[ListItem] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Paragraph[`Paragraph`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Paragraph[Paragraph] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Param[`Param`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Param[Param] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Postcondition[`Postcondition`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Postcondition[Postcondition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Precondition[`Precondition`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Precondition[Precondition] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Reference[`Reference`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Reference[Reference] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Returns[`Returns`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Returns[Returns] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-See[`See`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-See[See] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Styled[`Styled`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Styled[Styled] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-TParam[`TParam`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-TParam[TParam] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Text[`Text`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Text[Text] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-Throws[`Throws`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-Throws[Throws] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the link:#clang-mrdocs-doc-UnorderedList[`UnorderedList`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-doc-UnorderedList[UnorderedList] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== Map the Polymorphic Node as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class IO, link:#clang-mrdocs-polymorphic_storage_for[polymorphic_storage_for<Node>] NodeTy> void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], IO& io, NodeTy const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *io* | The output parameter to receive the dom::Object. | *I* | The input object. | *domCorpus* | The DOM corpus, or nullptr if not part of a corpus. |=== `toString` overloads == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Return the name of the Admonish as a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-doc-toString-0f[toString](link:#clang-mrdocs-doc-Admonish[Admonish] kind) noexcept; ---- [.small]#link:#clang-mrdocs-doc-toString-0f[_» more..._]# Return the name of the NodeKind as a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-doc-toString-00b[toString](link:#clang-mrdocs-doc-NodeKind[NodeKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-doc-toString-00b[_» more..._]# Return the name of the ParamDirection as a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-doc-toString-0b[toString](link:#clang-mrdocs-doc-ParamDirection[ParamDirection] kind) noexcept; ---- [.small]#link:#clang-mrdocs-doc-toString-0b[_» more..._]# Return the name of the Parts as a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-doc-toString-04[toString](link:#clang-mrdocs-doc-Parts[Parts] kind) noexcept; ---- [.small]#link:#clang-mrdocs-doc-toString-04[_» more..._]# Return the name of the link:#clang-mrdocs-doc-Style[`Style`] as a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-doc-toString-003[toString](link:#clang-mrdocs-doc-Style[Style] kind) noexcept; ---- [.small]#link:#clang-mrdocs-doc-toString-003[_» more..._]# == Return Value The string representation of the style. == Parameters [cols=2] |=== | Name | Description | *kind* | The style kind. |=== Return the name of the Admonish as a string. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-doc-Admonish[Admonish] kind) noexcept; ---- == Return Value the name of the Admonish as a string. == Parameters [cols=2] |=== | Name | Description | *kind* | An admonishment style. |=== Return the name of the NodeKind as a string. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-doc-NodeKind[NodeKind] kind) noexcept; ---- == Return Value the name of the NodeKind as a string. == Parameters [cols=2] |=== | Name | Description | *kind* | The kind of node. |=== Return the name of the ParamDirection as a string. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-doc-ParamDirection[ParamDirection] kind) noexcept; ---- == Return Value the name of the ParamDirection as a string. == Parameters [cols=2] |=== | Name | Description | *kind* | Parameter pass direction. |=== Return the name of the Parts as a string. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-doc-Parts[Parts] kind) noexcept; ---- == Return Value the name of the Parts as a string. == Parameters [cols=2] |=== | Name | Description | *kind* | Which parts of the documentation to copy. |=== Return the name of the link:#clang-mrdocs-doc-Style[`Style`] as a string. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-doc-Style[Style] kind) noexcept; ---- == Return Value The string representation of the style. == Parameters [cols=2] |=== | Name | Description | *kind* | The style kind. |=== Traverse a list of nodes. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class F, class T, class... Args> requires std::derived_from<T, Node> void traverse( std::vector<std::unique_ptr<T>> const& list, F&& f, Args...&&... args); ---- == Parameters [cols=2] |=== | Name | Description | *list* | The list of nodes to traverse. | *f* | The function to call for each node. | *args* | Additional arguments to pass to the function. |=== Visit a node. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class NodeTy, class Fn, class... Args> requires std::derived_from<NodeTy, Node> decltype(auto) visit( NodeTy& node, Fn&& fn, Args...&&... args); ---- == Return Value The result of calling the function. == Parameters [cols=2] |=== | Name | Description | *node* | The node to visit. | *fn* | The function to call for each node. | *args* | Additional arguments to pass to the function. |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( link:#clang-mrdocs-Polymorphic[Polymorphic<Text>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<Text>] const& rhs); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>( link:#clang-mrdocs-Polymorphic[Polymorphic<Text>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<Text>] const& rhs); ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Objects representing JSON‐like values. == Namespaces [cols=1] |=== | Name | link:#clang-mrdocs-dom-JSON[`JSON`] |=== == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-Array[`Array`] | An array of values | link:#clang-mrdocs-dom-ArrayImpl[`ArrayImpl`] | Abstract array interface. | link:#clang-mrdocs-dom-DefaultArrayImpl[`DefaultArrayImpl`] | The default array implementation. | link:#clang-mrdocs-dom-DefaultFunctionImpl[`DefaultFunctionImpl`] | | link:#clang-mrdocs-dom-DefaultObjectImpl[`DefaultObjectImpl`] | The default Object implementation. | link:#clang-mrdocs-dom-Function[`Function`] | | link:#clang-mrdocs-dom-FunctionImpl[`FunctionImpl`] | | link:#clang-mrdocs-dom-LazyArrayImpl[`LazyArrayImpl`] | Lazy array implementation | link:#clang-mrdocs-dom-LazyObjectImpl[`LazyObjectImpl`] | Lazy object implementation. | link:#clang-mrdocs-dom-LazyObjectMapTag[`LazyObjectMapTag`] | Customization point tag. | link:#clang-mrdocs-dom-Object[`Object`] | A container of key and value pairs. | link:#clang-mrdocs-dom-ObjectImpl[`ObjectImpl`] | Abstract object interface. | link:#clang-mrdocs-dom-String[`String`] | | link:#clang-mrdocs-dom-Value[`Value`] | A variant container for any kind of Dom value. | link:#clang-mrdocs-dom-ValueFromTag[`ValueFromTag`] | Customization point tag. | link:#clang-mrdocs-dom-VariadicFunctionImpl[`VariadicFunctionImpl`] | | link:#clang-mrdocs-dom-function_traits-00[`function_traits`] | | link:#clang-mrdocs-dom-function_traits-0a8[`function_traits<F>`] | | link:#clang-mrdocs-dom-function_traits-03[`function_traits<R(*)(Args...)>`] | | link:#clang-mrdocs-dom-function_traits-0e[`function_traits<R(Args...)>`] | | link:#clang-mrdocs-dom-function_traits-0ae[`function_traits<R const volatile(C::*)(Args...)>`] | |=== == Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-Kind[`Kind`] | The type of data in a Value. |=== == Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-LazyArray-0c[`LazyArray`] | `LazyArray` overloads | link:#clang-mrdocs-dom-LazyObject-05[`LazyObject`] | `LazyObject` overloads | link:#clang-mrdocs-dom-TransformArray[`TransformArray`] | Return a new dom::Array based on a transformed lazy array implementation. | link:#clang-mrdocs-dom-ValueFrom-0cc[`ValueFrom`] | `ValueFrom` overloads | link:#clang-mrdocs-dom-makeInvocable[`makeInvocable`] | | link:#clang-mrdocs-dom-makeVariadicInvocable[`makeVariadicInvocable`] | | link:#clang-mrdocs-dom-newArray[`newArray`] | Return a new array using a custom implementation. | link:#clang-mrdocs-dom-newFunction[`newFunction`] | Return a diagnostic string. | link:#clang-mrdocs-dom-newObject[`newObject`] | Return a new object using a custom implementation. | link:#clang-mrdocs-dom-operator_and-03[`operator&&`] | Return the first dom::Value that is not truthy, or the last one. | link:#clang-mrdocs-dom-operator_plus-0b0[`operator+`] | Addition operators | link:#clang-mrdocs-dom-operator_or-08[`operator||`] | Return the first dom::Value that is truthy, or the last one. | link:#clang-mrdocs-dom-stringOrNull[`stringOrNull`] | Return a non‐empty string, or a null. | link:#clang-mrdocs-dom-swap-06[`swap`] | `swap` overloads | link:#clang-mrdocs-dom-toString-05[`toString`] | `toString` overloads | link:#clang-mrdocs-dom-operator_eq-0f[`operator==`] | Equality operators | link:#clang-mrdocs-dom-operator_not_eq-0a[`operator!=`] | Return the result of comparing two strings. | link:#clang-mrdocs-dom-operator_3way-0fa[`operator<=>`] | Three‐way comparison operators |=== == Concepts [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-HasLazyObjectMap[`HasLazyObjectMap`] | Determine if `T` can be converted to link:#clang-mrdocs-dom-Value[`dom::Value`]. | link:#clang-mrdocs-dom-HasLazyObjectMapWithContext[`HasLazyObjectMapWithContext`] | Concept to determine if a type can be mapped to a link:#clang-mrdocs-dom-LazyObjectImpl[`dom::LazyObjectImpl`] with a user‐provided conversion. | link:#clang-mrdocs-dom-HasLazyObjectMapWithoutContext[`HasLazyObjectMapWithoutContext`] | Concept to determine if a type can be mapped to a link:#clang-mrdocs-dom-LazyObjectImpl[`dom::LazyObjectImpl`] with a user‐provided conversion. | link:#clang-mrdocs-dom-HasStandaloneValueFrom[`HasStandaloneValueFrom`] | Determine if `T` can be converted to link:#clang-mrdocs-dom-Value[`dom::Value`] without a context. | link:#clang-mrdocs-dom-HasValueFrom[`HasValueFrom`] | Determine if `T` can be converted to link:#clang-mrdocs-dom-Value[`dom::Value`]. | link:#clang-mrdocs-dom-HasValueFromWithContext[`HasValueFromWithContext`] | Concept to determine if a type can be converted to a link:#clang-mrdocs-dom-Value[`dom::Value`] with a user‐provided conversion. | link:#clang-mrdocs-dom-HasValueFromWithoutContext[`HasValueFromWithoutContext`] | Concept to determine if a type can be converted to a link:#clang-mrdocs-dom-Value[`dom::Value`] with a user‐provided conversion. | link:#clang-mrdocs-dom-StringLikeTy[`StringLikeTy`] | Satisfied if StringTy is convertible to String but not a String. | link:#clang-mrdocs-dom-function_traits_convertible_to_value[`function_traits_convertible_to_value`] | | link:#clang-mrdocs-dom-has_function_args_for_default_function_impl[`has_function_args_for_default_function_impl`] | | link:#clang-mrdocs-dom-has_function_traits[`has_function_traits`] | | link:#clang-mrdocs-dom-has_function_traits_for_default_function_impl[`has_function_traits_for_default_function_impl`] | | link:#clang-mrdocs-dom-has_invoke_expected_result_convertible_to_dom_value[`has_invoke_expected_result_convertible_to_dom_value`] | | link:#clang-mrdocs-dom-has_invoke_result_convertible_to_dom_value[`has_invoke_result_convertible_to_dom_value`] | | link:#clang-mrdocs-dom-has_invoke_result_for_default_function_impl[`has_invoke_result_for_default_function_impl`] | |=== == Description This class is a variant‐like container for holding any kind of value that can be represented in JSON, with extensions for functions and "safe strings". The class supports the following types: ‐ Undefined ‐ Null ‐ Boolean ‐ Integer ‐ String ‐ SafeString ‐ Array ‐ Object ‐ Function The class provides type‐safe accessors for each type, as well as methods to check the type of the contained value. Example: [,cpp] ---- {.cpp} dom::Value v1 = 42; // Integer dom::Value v2 = "Hello, World!"; // String dom::Value v3 = dom::Array{v1, v2}; // Array if (v1.isInteger()) { std::cout << "v1 is an integer: " << v1.getInteger() << "\n"; } if (v2.isString()) { std::cout << "v2 is a string: " << v2.getString() << "\n"; } if (v3.isArray()) { std::cout << "v3 is an array with " << v3.getArray().size() << " elements.\n"; } ---- == Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-JSON-stringify[`stringify`] | Stringify a value as JSON |=== Stringify a value as JSON == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string stringify(link:#clang-mrdocs-dom-Value[dom::Value] const& value); ---- == Description This function serialized a link:#clang-mrdocs-dom-Value[`Value`] to a string as if `JSON.stringify()` had been called on it. Recursive objects are identified. == Return Value A string containing valid JSON. == Parameters [cols=2] |=== | Name | Description | *value* | The value to stringify. |=== An array of values == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Array final ---- == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-Array-iterator[`iterator`] | A constant iterator referencing an element in an Array. | link:#clang-mrdocs-dom-Array-const_iterator[`const_iterator`] | A constant iterator referencing an element in an Array. | link:#clang-mrdocs-dom-Array-const_pointer[`const_pointer`] | A pointer to an element. | link:#clang-mrdocs-dom-Array-const_reference[`const_reference`] | A reference to an element. | link:#clang-mrdocs-dom-Array-difference_type[`difference_type`] | A signed integral type. | link:#clang-mrdocs-dom-Array-impl_type[`impl_type`] | The implementation type. | link:#clang-mrdocs-dom-Array-pointer[`pointer`] | A pointer to an element. | link:#clang-mrdocs-dom-Array-reference[`reference`] | A reference to an element. | link:#clang-mrdocs-dom-Array-size_type[`size_type`] | An unsigned integral type used for indexes and sizes. | link:#clang-mrdocs-dom-Array-storage_type[`storage_type`] | The type of storage used by the default implementation. | link:#clang-mrdocs-dom-Array-value_type[`value_type`] | The type of an element. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-Array-2constructor-029[`Array`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-dom-Array-2destructor[`~Array`] [.small]#[destructor]# | Destructor. | link:#clang-mrdocs-dom-Array-operator_assign-02[`operator=`] | Assignment. | link:#clang-mrdocs-dom-Array-at[`at`] | Return the i‐th element. | link:#clang-mrdocs-dom-Array-back[`back`] | Return the last element. | link:#clang-mrdocs-dom-Array-begin[`begin`] | Return an iterator to the beginning of the range of elements. | link:#clang-mrdocs-dom-Array-emplace_back[`emplace_back`] | Append an element to the end of the array. | link:#clang-mrdocs-dom-Array-empty[`empty`] | Return true if the array is empty. | link:#clang-mrdocs-dom-Array-end[`end`] | Return an iterator to the end of the range of elements. | link:#clang-mrdocs-dom-Array-front[`front`] | Return the first element. | link:#clang-mrdocs-dom-Array-get[`get`] | Return the i‐th element, without bounds checking. | link:#clang-mrdocs-dom-Array-impl[`impl`] | Return the implementation used by this object. | link:#clang-mrdocs-dom-Array-push_back[`push_back`] | Append an element to the end of the array. | link:#clang-mrdocs-dom-Array-set[`set`] | Set the i‐th element, without bounds checking. | link:#clang-mrdocs-dom-Array-size[`size`] | Return the number of elements in the array. | link:#clang-mrdocs-dom-Array-swap[`swap`] | Swap two arrays. | link:#clang-mrdocs-dom-Array-type_key[`type_key`] | Return the type key of the implementation. |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-newArray[clang::mrdocs::dom::newArray]` | Return a new array using a custom implementation. | `link:#clang-mrdocs-dom-toString-0e[clang::mrdocs::dom::toString]` | Return a diagnostic string. | `link:#clang-mrdocs-dom-operator_3way-0ff[clang::mrdocs::dom::operator<=>]` | Compare two arrays for precedence. | `link:#clang-mrdocs-dom-operator_eq-04[clang::mrdocs::dom::operator==]` | Compare two arrays for equality. | `link:#clang-mrdocs-dom-swap-04[clang::mrdocs::dom::swap]` | Swap two arrays. | `link:#clang-mrdocs-dom-operator_plus-087[clang::mrdocs::dom::operator+]` | | `link:#clang-mrdocs-dom-operator_plus-023[clang::mrdocs::dom::operator+]` | | `link:#clang-mrdocs-dom-operator_plus-04[clang::mrdocs::dom::operator+]` | Concatenate two arrays. |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-LazyArray-00[`LazyArray`] | Return a new link:#clang-mrdocs-dom-Array[`dom::Array`] based on a lazy array implementation. | link:#clang-mrdocs-dom-LazyArray-0a[`LazyArray`] | Return a new dom::Array based on a FromValue context | link:#clang-mrdocs-dom-TransformArray[`TransformArray`] | Return a new dom::Array based on a transformed lazy array implementation. | link:#clang-mrdocs-getParents-02[`::clang::mrdocs::getParents`] | Return a list of the parent symbols of the specified Info. | link:#clang-mrdocs-helpers-and_fn[`::clang::mrdocs::helpers::and_fn`] | "and" helper function | link:#clang-mrdocs-helpers-eq_fn[`::clang::mrdocs::helpers::eq_fn`] | "eq" helper function | link:#clang-mrdocs-helpers-ne_fn[`::clang::mrdocs::helpers::ne_fn`] | "ne" helper function | link:#clang-mrdocs-helpers-not_fn[`::clang::mrdocs::helpers::not_fn`] | "not" helper function | link:#clang-mrdocs-helpers-or_fn[`::clang::mrdocs::helpers::or_fn`] | "or" helper function |=== == Description Arrays are a collection of indexed values. They are an extension of objects with a particular relationship between integer‐keyed properties and some abstract length‐property. Besides, they include convenient methods to manipulate these ordered sequences of values. A constant iterator referencing an element in an Array. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_iterator = link:#clang-mrdocs-dom-Array-iterator[iterator]; ---- A pointer to an element. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_pointer = link:#clang-mrdocs-dom-Array-value_type[value_type] const*; ---- A reference to an element. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_reference = link:#clang-mrdocs-dom-Array-value_type[value_type]; ---- == Description This is a read‐only reference to an element. A signed integral type. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using difference_type = std::ptrdiff_t; ---- The implementation type. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using impl_type = std::shared_ptr<ArrayImpl>; ---- A pointer to an element. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using pointer = link:#clang-mrdocs-dom-Array-value_type[value_type] const*; ---- A reference to an element. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using reference = link:#clang-mrdocs-dom-Array-value_type[value_type]; ---- == Description This is a read‐only reference to an element. An unsigned integral type used for indexes and sizes. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using size_type = std::size_t; ---- The type of storage used by the default implementation. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using storage_type = std::vector<value_type>; ---- The type of an element. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using value_type = link:#clang-mrdocs-dom-Value[Value]; ---- A constant iterator referencing an element in an Array. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class iterator; ---- == Friends [cols=2] |=== | Name | Description | `clang::mrdocs::dom::operator+` | | `link:#clang-mrdocs-dom-Array[clang::mrdocs::dom::Array]` | An array of values |=== Constructor. == Synopses Declared in `<mrdocs/Dom/Array.hpp>` Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-2constructor-07[Array](); ---- [.small]#link:#clang-mrdocs-dom-Array-2constructor-07[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-2constructor-00[Array](link:#clang-mrdocs-dom-Array[Array] const& other); ---- [.small]#link:#clang-mrdocs-dom-Array-2constructor-00[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-2constructor-09[Array](link:#clang-mrdocs-dom-Array[Array]&& other); ---- [.small]#link:#clang-mrdocs-dom-Array-2constructor-09[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-2constructor-023[Array](link:#clang-mrdocs-dom-Array-impl_type[impl_type] impl) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Array-2constructor-023[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-2constructor-06[Array](link:#clang-mrdocs-dom-Array-storage_type[storage_type] elements); ---- [.small]#link:#clang-mrdocs-dom-Array-2constructor-06[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *elements* | The elements to acquire. |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Array(); ---- == Description Default‐constructed arrays refer to a new, empty array which is distinct from every other empty array. Constructor. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Array(link:#clang-mrdocs-dom-Array[Array] const& other); ---- == Description The newly constructed array will contain copies of the scalars in other, and references to its structured data. == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Array(link:#clang-mrdocs-dom-Array[Array]&& other); ---- == Description Ownership of the contents is transferred to the new object. The moved‐from array will behave as if default‐constructed. == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Array(link:#clang-mrdocs-dom-Array-impl_type[impl_type] impl) noexcept; ---- == Description This constructs an array from an existing implementation, with shared ownership. The pointer cannot not be null. == Parameters [cols=2] |=== | Name | Description | *impl* | The object to construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Array(link:#clang-mrdocs-dom-Array-storage_type[storage_type] elements); ---- == Description Upon construction, the array will retain ownership of a shallow copy of the specified elements. In particular, dynamic objects will be acquired with shared ownership. == Parameters [cols=2] |=== | Name | Description | *elements* | The elements to acquire. |=== Destructor. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~Array(); ---- Assignment. == Synopses Declared in `<mrdocs/Dom/Array.hpp>` Assignment. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-dom-Array[Array]& link:#clang-mrdocs-dom-Array-operator_assign-09[operator=](link:#clang-mrdocs-dom-Array[Array] const& other) = default; ---- [.small]#link:#clang-mrdocs-dom-Array-operator_assign-09[_» more..._]# Assignment. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[Array]& link:#clang-mrdocs-dom-Array-operator_assign-0c[operator=](link:#clang-mrdocs-dom-Array[Array]&& other); ---- [.small]#link:#clang-mrdocs-dom-Array-operator_assign-0c[_» more..._]# Assignment. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-dom-Array[Array]& operator=(link:#clang-mrdocs-dom-Array[Array] const& other) = default; ---- == Description This acquires shared ownership of the copied array, and ownership of the previous contents is released. == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Assignment. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[Array]& operator=(link:#clang-mrdocs-dom-Array[Array]&& other); ---- == Description Ownership of the array is transferred to this, and ownership of the previous contents is released. The moved‐from array behaves as if default constructed. == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to move assign from |=== Return the i‐th element. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-value_type[value_type] at(link:#clang-mrdocs-dom-Array-size_type[size_type] i) const; ---- == Exceptions [cols=2] |=== | Name | Thrown on | link:#clang-mrdocs-Exception[`Exception`] | `i >= size()` |=== == Return Value the i‐th element. == Parameters [cols=2] |=== | Name | Description | *i* | An unsigned integral type used for indexes and sizes. |=== Return the last element. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-value_type[value_type] back() const; ---- == Exceptions [cols=2] |=== | Name | Thrown on | link:#clang-mrdocs-Exception[`Exception`] | `empty()` |=== == Return Value the last element. Return an iterator to the beginning of the range of elements. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-iterator[iterator] begin() const; ---- == Return Value an iterator to the beginning of the range of elements. Append an element to the end of the array. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> void emplace_back(Args...&&... args); ---- == Description If the array is read‐only, an exception is thrown. == Parameters [cols=2] |=== | Name | Description | *args* | Arguments forwarded to the constructor of Value. |=== Return true if the array is empty. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool empty() const noexcept; ---- == Return Value true if the array is empty. Return an iterator to the end of the range of elements. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-iterator[iterator] end() const; ---- == Return Value an iterator to the end of the range of elements. Return the first element. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-value_type[value_type] front() const; ---- == Exceptions [cols=2] |=== | Name | Thrown on | link:#clang-mrdocs-Exception[`Exception`] | `empty()` |=== == Return Value the first element. Return the i‐th element, without bounds checking. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-value_type[value_type] get(link:#clang-mrdocs-dom-Array-size_type[size_type] i) const; ---- == Return Value the i‐th element, without bounds checking. == Parameters [cols=2] |=== | Name | Description | *i* | The zero‐based index of the element. |=== Return the implementation used by this object. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-impl_type[impl_type] const& impl() const noexcept; ---- == Return Value the implementation used by this object. Append an element to the end of the array. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void push_back(link:#clang-mrdocs-dom-Array-value_type[value_type] value); ---- == Description If the array is read‐only, an exception is thrown. == Parameters [cols=2] |=== | Name | Description | *value* | The type of an element. |=== Set the i‐th element, without bounds checking. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void set( link:#clang-mrdocs-dom-Array-size_type[size_type] i, link:#clang-mrdocs-dom-Value[Value] v); ---- == Parameters [cols=2] |=== | Name | Description | *i* | The zero‐based index of the element. | *v* | The value to set. |=== Return the number of elements in the array. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-size_type[size_type] size() const noexcept; ---- == Return Value the number of elements in the array. Swap two arrays. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(link:#clang-mrdocs-dom-Array[Array]& other) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *other* | An array of values |=== Return the type key of the implementation. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char const* type_key() const noexcept; ---- == Return Value the type key of the implementation. Abstract array interface. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ArrayImpl; ---- == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-ArrayImpl-size_type[`size_type`] | An unsigned integral type used for indexes and sizes. | link:#clang-mrdocs-dom-ArrayImpl-value_type[`value_type`] | The type of an element. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-ArrayImpl-2destructor[`~ArrayImpl`] [.small]#[destructor]# [.small]#[virtual]# | Destructor. | link:#clang-mrdocs-dom-ArrayImpl-emplace_back[`emplace_back`] [.small]#[virtual]# | Append an element to the end of the array. | link:#clang-mrdocs-dom-ArrayImpl-get[`get`] [.small]#[virtual]# | Return the i‐th element, without bounds checking. | link:#clang-mrdocs-dom-ArrayImpl-set[`set`] [.small]#[virtual]# | Set the i‐th element, without bounds checking. | link:#clang-mrdocs-dom-ArrayImpl-size[`size`] [.small]#[virtual]# | Return the number of elements in the array. | link:#clang-mrdocs-dom-ArrayImpl-type_key[`type_key`] [.small]#[virtual]# | Return the type key of the implementation. |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-DefaultArrayImpl[`DefaultArrayImpl`] | The default array implementation. | link:#clang-mrdocs-dom-LazyArrayImpl[`LazyArrayImpl`] | Lazy array implementation |=== == Description This interface is used by Array types. An unsigned integral type used for indexes and sizes. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using size_type = link:#clang-mrdocs-dom-Array-size_type[Array::size_type]; ---- The type of an element. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using value_type = link:#clang-mrdocs-dom-Array-value_type[Array::value_type]; ---- Destructor. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual ~ArrayImpl(); ---- Append an element to the end of the array. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void emplace_back(link:#clang-mrdocs-dom-ArrayImpl-value_type[value_type] value); ---- == Description The default implementation throws an exception, making the array effectively read‐only. == Parameters [cols=2] |=== | Name | Description | *value* | The type of an element. |=== Return the i‐th element, without bounds checking. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-ArrayImpl-value_type[value_type] get(link:#clang-mrdocs-dom-ArrayImpl-size_type[size_type] i) const = 0; ---- == Return Value the i‐th element, without bounds checking. == Parameters [cols=2] |=== | Name | Description | *i* | An unsigned integral type used for indexes and sizes. |=== Set the i‐th element, without bounds checking. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void set( link:#clang-mrdocs-dom-ArrayImpl-size_type[size_type], link:#clang-mrdocs-dom-Value[Value]); ---- Return the number of elements in the array. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-ArrayImpl-size_type[size_type] size() const = 0; ---- == Return Value the number of elements in the array. Return the type key of the implementation. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual char const* type_key() const noexcept; ---- == Return Value the type key of the implementation. The default array implementation. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class DefaultArrayImpl : public link:#clang-mrdocs-dom-ArrayImpl[ArrayImpl] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-ArrayImpl[ArrayImpl]` | Abstract array interface. |=== == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-DefaultArrayImpl-size_type[`size_type`] | An unsigned integral type used for indexes and sizes. | link:#clang-mrdocs-dom-DefaultArrayImpl-storage_type[`storage_type`] | The type of storage used by the default implementation. | link:#clang-mrdocs-dom-DefaultArrayImpl-value_type[`value_type`] | The type of an element. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-DefaultArrayImpl-2constructor-0f[`DefaultArrayImpl`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-dom-DefaultArrayImpl-emplace_back[`emplace_back`] [.small]#[virtual]# | | link:#clang-mrdocs-dom-DefaultArrayImpl-get[`get`] [.small]#[virtual]# | | link:#clang-mrdocs-dom-DefaultArrayImpl-set-0b[`set`] [.small]#[virtual]# | Set the i‐th element, without bounds checking. | link:#clang-mrdocs-dom-DefaultArrayImpl-size[`size`] [.small]#[virtual]# | | link:#clang-mrdocs-dom-DefaultArrayImpl-type_key[`type_key`] [.small]#[virtual]# | |=== == Description This implementation is backed by a simple vector and allows appending. An unsigned integral type used for indexes and sizes. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using size_type = link:#clang-mrdocs-dom-Array-size_type[Array::size_type]; ---- The type of storage used by the default implementation. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using storage_type = link:#clang-mrdocs-dom-Array-storage_type[Array::storage_type]; ---- The type of an element. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using value_type = link:#clang-mrdocs-dom-Array-value_type[Array::value_type]; ---- Constructors == Synopses Declared in `<mrdocs/Dom/Array.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-DefaultArrayImpl-2constructor-0d[DefaultArrayImpl](); ---- [.small]#link:#clang-mrdocs-dom-DefaultArrayImpl-2constructor-0d[_» more..._]# Construct from `storage_type` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-dom-DefaultArrayImpl-2constructor-0b[DefaultArrayImpl](link:#clang-mrdocs-dom-DefaultArrayImpl-storage_type[storage_type] elements) noexcept; ---- [.small]#link:#clang-mrdocs-dom-DefaultArrayImpl-2constructor-0b[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- DefaultArrayImpl(); ---- Construct from `storage_type` == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit DefaultArrayImpl(link:#clang-mrdocs-dom-DefaultArrayImpl-storage_type[storage_type] elements) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *elements* | The object to construct from |=== == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void emplace_back(link:#clang-mrdocs-dom-DefaultArrayImpl-value_type[value_type] value) override; ---- == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-DefaultArrayImpl-value_type[value_type] get(link:#clang-mrdocs-dom-DefaultArrayImpl-size_type[size_type] i) const override; ---- Set the i‐th element, without bounds checking. == Synopses Declared in `<mrdocs/Dom/Array.hpp>` Set the i‐th element, without bounds checking. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void link:#clang-mrdocs-dom-ArrayImpl-set[set]( link:#clang-mrdocs-dom-ArrayImpl-size_type[size_type], link:#clang-mrdocs-dom-Value[Value]); ---- [.small]#link:#clang-mrdocs-dom-ArrayImpl-set[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void link:#clang-mrdocs-dom-DefaultArrayImpl-set-07[set]( link:#clang-mrdocs-dom-DefaultArrayImpl-size_type[size_type] i, link:#clang-mrdocs-dom-Value[Value] v) override; ---- [.small]#link:#clang-mrdocs-dom-DefaultArrayImpl-set-07[_» more..._]# Set the i‐th element, without bounds checking. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void set( link:#clang-mrdocs-dom-ArrayImpl-size_type[size_type], link:#clang-mrdocs-dom-Value[Value]); ---- == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void set( link:#clang-mrdocs-dom-DefaultArrayImpl-size_type[size_type] i, link:#clang-mrdocs-dom-Value[Value] v) override; ---- == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-DefaultArrayImpl-size_type[size_type] size() const override; ---- == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual char const* type_key() const noexcept override; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> class DefaultFunctionImpl : public link:#clang-mrdocs-dom-FunctionImpl[FunctionImpl] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-FunctionImpl[FunctionImpl]` | |=== == Types [cols=1] |=== | Name | link:#clang-mrdocs-dom-DefaultFunctionImpl-args_type[`args_type`] | link:#clang-mrdocs-dom-DefaultFunctionImpl-return_type[`return_type`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-DefaultFunctionImpl-2constructor[`DefaultFunctionImpl`] [.small]#[constructor]# | Construct from `U` | link:#clang-mrdocs-dom-DefaultFunctionImpl-call[`call`] [.small]#[virtual]# | | link:#clang-mrdocs-dom-DefaultFunctionImpl-type_key[`type_key`] [.small]#[virtual]# | |=== == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using args_type = function_traits<F>::args_type; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using return_type = function_traits<F>::return_type; ---- Construct from `U` == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> DefaultFunctionImpl(U&& u); ---- == Parameters [cols=2] |=== | Name | Description | *u* | The object to move construct from |=== == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Expected-03[Expected<Value>] call(link:#clang-mrdocs-dom-Array[Array] const& args) const override; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual char const* type_key() const noexcept override; ---- The default Object implementation. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class DefaultObjectImpl : public link:#clang-mrdocs-dom-ObjectImpl[ObjectImpl] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-ObjectImpl[ObjectImpl]` | Abstract object interface. |=== == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-ObjectImpl-reference[`reference`] | A reference to an element. | link:#clang-mrdocs-dom-ObjectImpl-storage_type[`storage_type`] | The type of storage used by the default implementation. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-DefaultObjectImpl-2constructor-02[`DefaultObjectImpl`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-dom-DefaultObjectImpl-exists[`exists`] [.small]#[virtual]# | | link:#clang-mrdocs-dom-DefaultObjectImpl-get-0b[`get`] [.small]#[virtual]# | Return the value for the specified key, or null. | link:#clang-mrdocs-dom-DefaultObjectImpl-set-043[`set`] [.small]#[virtual]# | Insert or set the given key/value pair. | link:#clang-mrdocs-dom-DefaultObjectImpl-size[`size`] [.small]#[virtual]# | | link:#clang-mrdocs-dom-ObjectImpl-type_key[`type_key`] [.small]#[virtual]# | Return the type key of the implementation. | link:#clang-mrdocs-dom-DefaultObjectImpl-visit-00[`visit`] [.small]#[virtual]# | Invoke the visitor for each key/value pair. |=== Constructors == Synopses Declared in `<mrdocs/Dom/Object.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-DefaultObjectImpl-2constructor-08[DefaultObjectImpl]() noexcept; ---- [.small]#link:#clang-mrdocs-dom-DefaultObjectImpl-2constructor-08[_» more..._]# Construct from `storage_type` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-dom-DefaultObjectImpl-2constructor-09[DefaultObjectImpl](link:#clang-mrdocs-dom-ObjectImpl-storage_type[storage_type] entries) noexcept; ---- [.small]#link:#clang-mrdocs-dom-DefaultObjectImpl-2constructor-09[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- DefaultObjectImpl() noexcept; ---- Construct from `storage_type` == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit DefaultObjectImpl(link:#clang-mrdocs-dom-ObjectImpl-storage_type[storage_type] entries) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *entries* | The object to construct from |=== == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool exists(std::string_view key) const override; ---- Return the value for the specified key, or null. == Synopses Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-Value[Value] link:#clang-mrdocs-dom-DefaultObjectImpl-get-0f[get](std::string_view) const override; ---- [.small]#link:#clang-mrdocs-dom-DefaultObjectImpl-get-0f[_» more..._]# Return the value for the specified key, or null. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-Value[Value] link:#clang-mrdocs-dom-ObjectImpl-get[get](std::string_view key) const = 0; ---- [.small]#link:#clang-mrdocs-dom-ObjectImpl-get[_» more..._]# == Return Value The value for the specified key, or null if the key does not exist. == Parameters [cols=2] |=== | Name | Description | *key* | The key. |=== == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-Value[Value] get(std::string_view) const override; ---- Return the value for the specified key, or null. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-Value[Value] get(std::string_view key) const = 0; ---- == Return Value The value for the specified key, or null if the key does not exist. == Parameters [cols=2] |=== | Name | Description | *key* | The key. |=== Insert or set the given key/value pair. == Synopses Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void link:#clang-mrdocs-dom-DefaultObjectImpl-set-041[set]( link:#clang-mrdocs-dom-String[String], link:#clang-mrdocs-dom-Value[Value]) override; ---- [.small]#link:#clang-mrdocs-dom-DefaultObjectImpl-set-041[_» more..._]# Insert or set the given key/value pair. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void link:#clang-mrdocs-dom-ObjectImpl-set[set]( link:#clang-mrdocs-dom-String[String] key, link:#clang-mrdocs-dom-Value[Value] value) = 0; ---- [.small]#link:#clang-mrdocs-dom-ObjectImpl-set[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *key* | The key. | *value* | The value to set. |=== == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void set( link:#clang-mrdocs-dom-String[String], link:#clang-mrdocs-dom-Value[Value]) override; ---- Insert or set the given key/value pair. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void set( link:#clang-mrdocs-dom-String[String] key, link:#clang-mrdocs-dom-Value[Value] value) = 0; ---- == Parameters [cols=2] |=== | Name | Description | *key* | The key. | *value* | The value to set. |=== == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::size_t size() const override; ---- Invoke the visitor for each key/value pair. == Synopses Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool link:#clang-mrdocs-dom-DefaultObjectImpl-visit-0f[visit](std::function<bool(link:#clang-mrdocs-dom-String[String], link:#clang-mrdocs-dom-Value[Value])>) const override; ---- [.small]#link:#clang-mrdocs-dom-DefaultObjectImpl-visit-0f[_» more..._]# Invoke the visitor for each key/value pair. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool link:#clang-mrdocs-dom-ObjectImpl-visit[visit](std::function<bool(link:#clang-mrdocs-dom-String[String], link:#clang-mrdocs-dom-Value[Value])> fn) const = 0; ---- [.small]#link:#clang-mrdocs-dom-ObjectImpl-visit[_» more..._]# == Return Value `true` if the visitor returned `true` for all elements, otherwise `false`. == Parameters [cols=2] |=== | Name | Description | *fn* | The visitor function. |=== == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool visit(std::function<bool(link:#clang-mrdocs-dom-String[String], link:#clang-mrdocs-dom-Value[Value])>) const override; ---- Invoke the visitor for each key/value pair. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool visit(std::function<bool(link:#clang-mrdocs-dom-String[String], link:#clang-mrdocs-dom-Value[Value])> fn) const = 0; ---- == Description The visitor function must return `true` to continue iteration, or `false` to stop. The visit function returns `true` if the visitor returned `true` for all elements, otherwise `false`. == Return Value `true` if the visitor returned `true` for all elements, otherwise `false`. == Parameters [cols=2] |=== | Name | Description | *fn* | The visitor function. |=== == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Function; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-Function-2constructor-0e[`Function`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-dom-Function-2destructor[`~Function`] [.small]#[destructor]# | Destructor. | link:#clang-mrdocs-dom-Function-operator_assign-0c[`operator=`] | Assignment. | link:#clang-mrdocs-dom-Function-call[`call`] | Invoke the function. | link:#clang-mrdocs-dom-Function-impl[`impl`] | Return the implementation used by this object. | link:#clang-mrdocs-dom-Function-operator_call[`operator()`] | Invoke the function. | link:#clang-mrdocs-dom-Function-swap[`swap`] | Swap two objects. | link:#clang-mrdocs-dom-Function-try_invoke[`try_invoke`] | Invoke the function. | link:#clang-mrdocs-dom-Function-type_key[`type_key`] | Return the type key. |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-newFunction[clang::mrdocs::dom::newFunction]` | Return a diagnostic string. | `link:#clang-mrdocs-dom-swap-08[clang::mrdocs::dom::swap]` | Swap two objects. |=== Constructor. == Synopses Declared in `<mrdocs/Dom/Function.hpp>` Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Function-2constructor-0f[Function]() noexcept; ---- [.small]#link:#clang-mrdocs-dom-Function-2constructor-0f[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Function-2constructor-04[Function](link:#clang-mrdocs-dom-Function[Function] const& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Function-2constructor-04[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Function-2constructor-0a[Function](link:#clang-mrdocs-dom-Function[Function]&& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Function-2constructor-0a[_» more..._]# Construct from `F` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires function_traits_convertible_to_value<std::decay_t<F>> link:#clang-mrdocs-dom-Function-2constructor-07[Function](F const& f); ---- [.small]#link:#clang-mrdocs-dom-Function-2constructor-07[_» more..._]# Constructor. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Function() noexcept; ---- == Description A default‐constructed function has this equivalent implementation: [,cpp] ---- Value f() { return nullptr; } ---- Constructor. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Function(link:#clang-mrdocs-dom-Function[Function] const& other) noexcept; ---- == Description The newly constructed object acquires shared ownership of the function. == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Function(link:#clang-mrdocs-dom-Function[Function]&& other) noexcept; ---- == Description Ownership of the function is tranferred. The moved‐from object behaves as if default constructed. == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Construct from `F` == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires function_traits_convertible_to_value<std::decay_t<F>> Function(F const& f); ---- == Parameters [cols=2] |=== | Name | Description | *f* | The object to copy construct from |=== Destructor. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~Function(); ---- Assignment. == Synopses Declared in `<mrdocs/Dom/Function.hpp>` Assignment. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Function[Function]& link:#clang-mrdocs-dom-Function-operator_assign-0a[operator=](link:#clang-mrdocs-dom-Function[Function] const& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Function-operator_assign-0a[_» more..._]# Assignment. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Function[Function]& link:#clang-mrdocs-dom-Function-operator_assign-07[operator=](link:#clang-mrdocs-dom-Function[Function]&& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Function-operator_assign-07[_» more..._]# Assignment. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Function[Function]& operator=(link:#clang-mrdocs-dom-Function[Function] const& other) noexcept; ---- == Description This acquires shared ownership of the function. Ownership of the previous function is removed. == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Assignment. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Function[Function]& operator=(link:#clang-mrdocs-dom-Function[Function]&& other) noexcept; ---- == Description Ownership of the function is tranferred, and ownership of the previous function is released. The moved‐from object behaves as if default constructed. == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to move assign from |=== Invoke the function. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Value>] call(link:#clang-mrdocs-dom-Array[Array] const& args) const; ---- == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *args* | An array of values |=== Return the implementation used by this object. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Function[impl_type] const& impl() const noexcept; ---- == Return Value the implementation used by this object. Invoke the function. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> link:#clang-mrdocs-dom-Value[Value] operator()(Args...&&... args) const; ---- == Return Value The return value of the function. == Parameters [cols=2] |=== | Name | Description | *args* | The arguments to the function. |=== Swap two objects. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(link:#clang-mrdocs-dom-Function[Function]& other) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The other object. |=== Invoke the function. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> link:#clang-mrdocs-Expected-03[Expected<Value>] try_invoke(Args...&&... args) const; ---- == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *args* | The arguments to the function. |=== Return the type key. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char const* type_key() const noexcept; ---- == Return Value the type key. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class FunctionImpl; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-FunctionImpl-2destructor[`~FunctionImpl`] [.small]#[destructor]# [.small]#[virtual]# | Destructor. | link:#clang-mrdocs-dom-FunctionImpl-call[`call`] [.small]#[virtual]# | Invoke the function. | link:#clang-mrdocs-dom-FunctionImpl-type_key[`type_key`] [.small]#[virtual]# | Return the type key of the implementation. |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-DefaultFunctionImpl[`DefaultFunctionImpl`] | | link:#clang-mrdocs-dom-VariadicFunctionImpl[`VariadicFunctionImpl`] | |=== Destructor. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr virtual ~FunctionImpl() = default; ---- Invoke the function. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Expected-03[Expected<Value>] call(link:#clang-mrdocs-dom-Array[Array] const& args) const = 0; ---- == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *args* | An array of values |=== Return the type key of the implementation. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual char const* type_key() const noexcept; ---- == Return Value the type key of the implementation. Lazy array implementation == Synopsis Declared in `<mrdocs/Dom/LazyArray.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::random_access_range R, class Context = /* implementation-defined */> requires HasValueFrom<std::ranges::range_value_t<R>, Context> || (std::invocable<Context, std::ranges::range_value_t<R>> && HasStandaloneValueFrom<std::invoke_result_t<Context, std::ranges::range_value_t<R>>>) class LazyArrayImpl : public link:#clang-mrdocs-dom-ArrayImpl[ArrayImpl] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-ArrayImpl[ArrayImpl]` | Abstract array interface. |=== == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-ArrayImpl-size_type[`size_type`] | An unsigned integral type used for indexes and sizes. | link:#clang-mrdocs-dom-ArrayImpl-value_type[`value_type`] | The type of an element. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-LazyArrayImpl-2constructor-00[`LazyArrayImpl`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-dom-LazyArrayImpl-2destructor[`~LazyArrayImpl`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-dom-ArrayImpl-emplace_back[`emplace_back`] [.small]#[virtual]# | Append an element to the end of the array. | link:#clang-mrdocs-dom-LazyArrayImpl-get-03[`get`] [.small]#[virtual]# | Return the i‐th element, without bounds checking. | link:#clang-mrdocs-dom-ArrayImpl-set[`set`] [.small]#[virtual]# | Set the i‐th element, without bounds checking. | link:#clang-mrdocs-dom-LazyArrayImpl-size[`size`] [.small]#[virtual]# | | link:#clang-mrdocs-dom-LazyArrayImpl-type_key[`type_key`] [.small]#[virtual]# | Return the type key of the implementation. |=== == Description This array type is used to define a dom::Array whose members are evaluated on demand as they are accessed. Each member can goes through a transform function before being returned as a Value so that all types can be converted to dom::Value. The underlying representation of the array is a range from where the elements are extracted. Elements in this range should be convertible to dom::Value. This class is typically useful for implementing arrays that are expensive and have recursive dependencies, as these recursive dependencies can also be deferred. Unlike a LazyObjectImpl, which contains an overlay object, this implementation is read‐only. The `set` and `emplace_back` methods are not implemented. Constructors == Synopses Declared in `<mrdocs/Dom/LazyArray.hpp>` Construct from `R` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-dom-LazyArrayImpl-2constructor-0d[LazyArrayImpl](R const& arr); ---- [.small]#link:#clang-mrdocs-dom-LazyArrayImpl-2constructor-0d[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-dom-LazyArrayImpl-2constructor-03[LazyArrayImpl]( R const& arr, Context const& ctx); ---- [.small]#link:#clang-mrdocs-dom-LazyArrayImpl-2constructor-03[_» more..._]# Construct from `R` == Synopsis Declared in `<mrdocs/Dom/LazyArray.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit LazyArrayImpl(R const& arr); ---- == Parameters [cols=2] |=== | Name | Description | *arr* | The object to copy construct from |=== == Synopsis Declared in `<mrdocs/Dom/LazyArray.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit LazyArrayImpl( R const& arr, Context const& ctx); ---- Destructor == Synopsis Declared in `<mrdocs/Dom/LazyArray.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual ~LazyArrayImpl() override = default; ---- Return the i‐th element, without bounds checking. == Synopses Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-Value[dom::Value] link:#clang-mrdocs-dom-LazyArrayImpl-get-04[get](std::size_t i) const override; ---- [.small]#link:#clang-mrdocs-dom-LazyArrayImpl-get-04[_» more..._]# Return the i‐th element, without bounds checking. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-ArrayImpl-value_type[value_type] link:#clang-mrdocs-dom-ArrayImpl-get[get](link:#clang-mrdocs-dom-ArrayImpl-size_type[size_type] i) const = 0; ---- [.small]#link:#clang-mrdocs-dom-ArrayImpl-get[_» more..._]# == Synopsis Declared in `<mrdocs/Dom/LazyArray.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-Value[dom::Value] get(std::size_t i) const override; ---- Return the i‐th element, without bounds checking. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-ArrayImpl-value_type[value_type] get(link:#clang-mrdocs-dom-ArrayImpl-size_type[size_type] i) const = 0; ---- == Return Value the i‐th element, without bounds checking. == Parameters [cols=2] |=== | Name | Description | *i* | An unsigned integral type used for indexes and sizes. |=== == Synopsis Declared in `<mrdocs/Dom/LazyArray.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::size_t size() const noexcept override; ---- Return the type key of the implementation. == Synopsis Declared in `<mrdocs/Dom/LazyArray.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual char const* type_key() const noexcept override; ---- == Return Value the type key of the implementation. Lazy object implementation. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class Context = /* implementation-defined */> requires HasLazyObjectMap<T, Context> class LazyObjectImpl : public link:#clang-mrdocs-dom-ObjectImpl[ObjectImpl] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-ObjectImpl[ObjectImpl]` | Abstract object interface. |=== == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-ObjectImpl-reference[`reference`] | A reference to an element. | link:#clang-mrdocs-dom-ObjectImpl-storage_type[`storage_type`] | The type of storage used by the default implementation. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-LazyObjectImpl-2constructor-07[`LazyObjectImpl`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-dom-LazyObjectImpl-2destructor[`~LazyObjectImpl`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-dom-LazyObjectImpl-exists[`exists`] [.small]#[virtual]# | Determine if a key exists. | link:#clang-mrdocs-dom-LazyObjectImpl-get[`get`] [.small]#[virtual]# | Return the value for the specified key, or null. | link:#clang-mrdocs-dom-LazyObjectImpl-set[`set`] [.small]#[virtual]# | Insert or set the given key/value pair. | link:#clang-mrdocs-dom-LazyObjectImpl-size[`size`] [.small]#[virtual]# | Return the number of properties in the object. | link:#clang-mrdocs-dom-LazyObjectImpl-type_key[`type_key`] [.small]#[virtual]# | Return the type key of the implementation. | link:#clang-mrdocs-dom-LazyObjectImpl-visit[`visit`] [.small]#[virtual]# | Invoke the visitor for each key/value pair. |=== == Description This interface is used to define objects whose members are evaluated on demand as they are accessed. When any of the object properties are accessed, the object link:#clang-mrdocs-dom-Value[`dom::Value`] is constructed. In practice, the object never takes any memory besides the pointer to the underlying object. The keys and values in the underlying object should be mapped using `tag_invoke`. This class is typically useful for implementing objects that are expensive and have recursive dependencies, as these recursive dependencies can also be deferred. A context can also be stored in the object as a form to customize how the object is mapped. This context should be copyable and is propagated to other objects that support an overload with the same context. The context can be simply a tag identifying how to map the object, or a more complex object carrying data to customize the mapping process. In the latter case, because the context should be a copyable, the user might want to use a type with reference semantics. Constructors == Synopses Declared in `<mrdocs/Dom/LazyObject.hpp>` Construct from `T` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-dom-LazyObjectImpl-2constructor-01[LazyObjectImpl](T const& obj) requires HasLazyObjectMapWithoutContext<T>; ---- [.small]#link:#clang-mrdocs-dom-LazyObjectImpl-2constructor-01[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-dom-LazyObjectImpl-2constructor-09[LazyObjectImpl]( T const& obj, Context const& context) requires HasLazyObjectMapWithContext<T, Context>; ---- [.small]#link:#clang-mrdocs-dom-LazyObjectImpl-2constructor-09[_» more..._]# Construct from `T` == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit LazyObjectImpl(T const& obj) requires HasLazyObjectMapWithoutContext<T>; ---- == Parameters [cols=2] |=== | Name | Description | *obj* | The object to copy construct from |=== == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit LazyObjectImpl( T const& obj, Context const& context) requires HasLazyObjectMapWithContext<T, Context>; ---- Destructor == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual ~LazyObjectImpl() override = default; ---- Determine if a key exists. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool exists(std::string_view key) const override; ---- == Return Value `true` if the key exists, otherwise `false`. == Parameters [cols=2] |=== | Name | Description | *key* | The key to check for existence. |=== Return the value for the specified key, or null. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-Value[Value] get(std::string_view key) const override; ---- == Return Value The value for the specified key, or null if the key does not exist. == Parameters [cols=2] |=== | Name | Description | *key* | The key. |=== Insert or set the given key/value pair. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void set( link:#clang-mrdocs-dom-String[String] key, link:#clang-mrdocs-dom-Value[Value] value) override; ---- == Parameters [cols=2] |=== | Name | Description | *key* | The key. | *value* | The value to set. |=== Return the number of properties in the object. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::size_t size() const override; ---- == Return Value the number of properties in the object. Return the type key of the implementation. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual char const* type_key() const noexcept override; ---- == Return Value the type key of the implementation. Invoke the visitor for each key/value pair. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool visit(std::function<bool(link:#clang-mrdocs-dom-String[String], link:#clang-mrdocs-dom-Value[Value])> fn) const override; ---- == Description The visitor function must return `true` to continue iteration, or `false` to stop. The visit function returns `true` if the visitor returned `true` for all elements, otherwise `false`. == Return Value `true` if the visitor returned `true` for all elements, otherwise `false`. == Parameters [cols=2] |=== | Name | Description | *fn* | The visitor function. |=== Customization point tag. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct LazyObjectMapTag; ---- == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-tag_invoke-003[`::clang::mrdocs::tag_invoke`] | Map a NamespaceTranche to a dom::Object. | link:#clang-mrdocs-tag_invoke-00a[`::clang::mrdocs::tag_invoke`] | Map the Info to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-tag_invoke-0229[`::clang::mrdocs::tag_invoke`] | Map a RecordTranche to a dom::Object. | link:#clang-mrdocs-tag_invoke-022e[`::clang::mrdocs::tag_invoke`] | Map a GuideInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-031[`::clang::mrdocs::tag_invoke`] | Map a RecordInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-047[`::clang::mrdocs::tag_invoke`] | Map a TypedefInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-066[`::clang::mrdocs::tag_invoke`] | Map the Polymorphic Info to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-tag_invoke-068[`::clang::mrdocs::tag_invoke`] | Map a EnumInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-06eb[`::clang::mrdocs::tag_invoke`] | Map a OverloadsInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-07b[`::clang::mrdocs::tag_invoke`] | Map a EnumConstantInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-07e[`::clang::mrdocs::tag_invoke`] | Map a UsingInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-07f[`::clang::mrdocs::tag_invoke`] | Map the link:#clang-mrdocs-Javadoc[`Javadoc`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-tag_invoke-09fd[`::clang::mrdocs::tag_invoke`] | Map a RecordInterface to a dom::Object. | link:#clang-mrdocs-tag_invoke-0a1[`::clang::mrdocs::tag_invoke`] | Map a NamespaceAliasInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-0c5[`::clang::mrdocs::tag_invoke`] | Map a FriendInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-0c8[`::clang::mrdocs::tag_invoke`] | Map a VariableInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-0e8[`::clang::mrdocs::tag_invoke`] | Map a ConceptInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-0f0[`::clang::mrdocs::tag_invoke`] | Map a FunctionInfo to a dom::Object. | link:#clang-mrdocs-tag_invoke-0fc[`::clang::mrdocs::tag_invoke`] | Map a NamespaceInfo to a dom::Object. | link:#clang-mrdocs-doc-tag_invoke-00e[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-ListItem[`ListItem`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-010[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Throws[`Throws`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-013[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Code[`Code`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-01a[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Block[`Block`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-032[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Postcondition[`Postcondition`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-03d[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Link[`Link`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-04d[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Reference[`Reference`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-066c[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-CopyDetails[`CopyDetails`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-076[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Returns[`Returns`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-081[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Brief[`Brief`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-08e[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-UnorderedList[`UnorderedList`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-091[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Node[`Node`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-096[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Admonition[`Admonition`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-09d[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Paragraph[`Paragraph`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-0a68[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Precondition[`Precondition`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-0ab[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-TParam[`TParam`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-0ba[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Styled[`Styled`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-0c4[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Heading[`Heading`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-0c8[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Param[`Param`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-0e[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-See[`See`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. | link:#clang-mrdocs-doc-tag_invoke-0f5[`::clang::mrdocs::doc::tag_invoke`] | Map the link:#clang-mrdocs-doc-Text[`Text`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. |=== == Description This tag type is used by the class link:#clang-mrdocs-dom-LazyObjectImpl[`dom::LazyObjectImpl`] to select overloads of `tag_invoke`. [NOTE] This type is empty; it has no members. == See Also link:#clang-mrdocs-dom-LazyObjectImpl[`dom::LazyObjectImpl`] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1895r0.pdf[] A container of key and value pairs. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Object final ---- == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-Object-value_type[`value_type`] | The type of an element. | link:#clang-mrdocs-dom-Object-const_pointer[`const_pointer`] | A pointer to an element. | link:#clang-mrdocs-dom-Object-const_reference[`const_reference`] | A reference to an element. | link:#clang-mrdocs-dom-Object-difference_type[`difference_type`] | A signed integral type. | link:#clang-mrdocs-dom-Object-impl_type[`impl_type`] | The implementation type. | link:#clang-mrdocs-dom-Object-pointer[`pointer`] | A pointer to an element. | link:#clang-mrdocs-dom-Object-reference[`reference`] | A reference to an element. | link:#clang-mrdocs-dom-Object-size_type[`size_type`] | An unsigned integral type used for indexes and sizes. | link:#clang-mrdocs-dom-Object-storage_type[`storage_type`] | The type of storage used by the default implementation. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-Object-2constructor-0f5[`Object`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-dom-Object-2destructor[`~Object`] [.small]#[destructor]# | Destructor. | link:#clang-mrdocs-dom-Object-operator_assign-00[`operator=`] | Assignment. | link:#clang-mrdocs-dom-Object-at[`at`] | Return the element at a given index. | link:#clang-mrdocs-dom-Object-empty[`empty`] | Return true if the container is empty. | link:#clang-mrdocs-dom-Object-exists[`exists`] | Return true if a key exists. | link:#clang-mrdocs-dom-Object-get[`get`] | Return the element with the specified key | link:#clang-mrdocs-dom-Object-impl[`impl`] | Return the implementation used by this object. | link:#clang-mrdocs-dom-Object-set[`set`] | Set or replace the value for a given key. | link:#clang-mrdocs-dom-Object-size[`size`] | Return the number of elements. | link:#clang-mrdocs-dom-Object-swap[`swap`] | Swap two objects. | link:#clang-mrdocs-dom-Object-type_key[`type_key`] | Return the type key. | link:#clang-mrdocs-dom-Object-visit-0f[`visit`] | Invoke the visitor for each key/value pair |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-toString-0a[clang::mrdocs::dom::toString]` | Return a diagnostic string. | `link:#clang-mrdocs-dom-operator_3way-02[clang::mrdocs::dom::operator<=>]` | Compare two objects for precedence. | `link:#clang-mrdocs-dom-operator_eq-00[clang::mrdocs::dom::operator==]` | Compare two objects for equality. | `link:#clang-mrdocs-dom-swap-00[clang::mrdocs::dom::swap]` | Swap two objects. |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-LazyObject-01[`LazyObject`] | Return a new dom::Object based on a lazy object implementation. | link:#clang-mrdocs-dom-LazyObject-0e[`LazyObject`] | Return a new dom::Object based on a transformed lazy array implementation. | link:#clang-mrdocs-dom-newObject[`newObject`] | Return a new object using a custom implementation. | link:#clang-mrdocs-createFrame-05[`::clang::mrdocs::createFrame`] | Create child data objects. |=== == Description Objects are a collection of properties, which are equivalent to key‐value pairs. Property values can be any type, including other Objects, allowing for the creation of arbitrarily complex data structures. An Object is a non‐primitive (or reference) type, meaning that they are not copied when assigned or passed as a parameter. Instead, the reference is copied, and the original value is shared. These reference types are modeled after JavaScript "Objects". All non‐primitive types (Object types) are derived from Object in JavaScript. This means types such as Array and Function represent a relevant selection of built‐in types that would derive from Object in JavaScript. == Properties [,cpp] ---- Objects are a collection of properties, which are equivalent to key-value pairs. There are two kinds of properties: @li Data properties: Associates a key with a value. @li Accessor properties: Associates a key with one of two accessor functions (`get` and `set`), which are used to retrieve or set the value. The internal representation of objects can determine how properties are stored and the type of properties being represented. Properties can also be enumerable or non-enumerable. An enumerable property is one that is iterated by the `visit` function. Non-enumerable properties can only be accessed by name with the `get` and `set` functions. ---- A pointer to an element. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_pointer = link:#clang-mrdocs-dom-Object-pointer[pointer]; ---- A reference to an element. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_reference = link:#clang-mrdocs-dom-Object-reference[reference]; ---- == Description This is a read‐only reference to an element. A signed integral type. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using difference_type = std::ptrdiff_t; ---- The implementation type. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using impl_type = std::shared_ptr<ObjectImpl>; ---- A pointer to an element. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using pointer = link:#clang-mrdocs-dom-Object-value_type[value_type] const*; ---- A reference to an element. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using reference = link:#clang-mrdocs-dom-Object-value_type[value_type]; ---- == Description This is a read‐only reference to an element. An unsigned integral type used for indexes and sizes. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using size_type = std::size_t; ---- The type of storage used by the default implementation. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using storage_type = std::vector<value_type>; ---- The type of an element. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct value_type; ---- == Description Elements of this container are key and value pairs where the key is a string. This type is a copyable, movable value type. Constructor. == Synopses Declared in `<mrdocs/Dom/Object.hpp>` Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object-2constructor-04[Object](); ---- [.small]#link:#clang-mrdocs-dom-Object-2constructor-04[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object-2constructor-05[Object](link:#clang-mrdocs-dom-Object[Object] const& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Object-2constructor-05[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object-2constructor-09[Object](link:#clang-mrdocs-dom-Object[Object]&& other); ---- [.small]#link:#clang-mrdocs-dom-Object-2constructor-09[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-dom-Object-2constructor-0f7[Object](link:#clang-mrdocs-dom-Object-impl_type[impl_type] impl) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Object-2constructor-0f7[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-dom-Object-2constructor-01[Object](link:#clang-mrdocs-dom-Object-storage_type[storage_type] list); ---- [.small]#link:#clang-mrdocs-dom-Object-2constructor-01[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *list* | The initial list of values. |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Object(); ---- == Description Default‐constructed objects refer to a new, empty container which is distinct from every other empty container. Constructor. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Object(link:#clang-mrdocs-dom-Object[Object] const& other) noexcept; ---- == Description The newly constructed object will contain copies of the scalars in other, and references to its structured data. == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Object(link:#clang-mrdocs-dom-Object[Object]&& other); ---- == Description Ownership of the contents is transferred to the new object. The moved‐from object will behave as if default‐constructed. == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Object(link:#clang-mrdocs-dom-Object-impl_type[impl_type] impl) noexcept; ---- == Description This constructs an object from an existing implementation, with shared ownership. The pointer cannot not be null. == Parameters [cols=2] |=== | Name | Description | *impl* | The object to construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Object(link:#clang-mrdocs-dom-Object-storage_type[storage_type] list); ---- == Description Upon construction, the object will retain ownership of a shallow copy of the specified list. In particular, dynamic objects will be acquired with shared ownership. == Parameters [cols=2] |=== | Name | Description | *list* | The initial list of values. |=== Destructor. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr ~Object() = default; ---- Assignment. == Synopses Declared in `<mrdocs/Dom/Object.hpp>` Assignment. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[Object]& link:#clang-mrdocs-dom-Object-operator_assign-07[operator=](link:#clang-mrdocs-dom-Object[Object] const& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Object-operator_assign-07[_» more..._]# Assignment. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[Object]& link:#clang-mrdocs-dom-Object-operator_assign-03[operator=](link:#clang-mrdocs-dom-Object[Object]&& other); ---- [.small]#link:#clang-mrdocs-dom-Object-operator_assign-03[_» more..._]# Assignment. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[Object]& operator=(link:#clang-mrdocs-dom-Object[Object] const& other) noexcept; ---- == Description Shared ownership and copies of elements in others are acquired by this. Ownership of the previous contents is released. == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Assignment. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[Object]& operator=(link:#clang-mrdocs-dom-Object[Object]&& other); ---- == Description Ownership of the object is transferred to this, and ownership of the previous contents is released. The moved‐from object behaves as if default constructed. == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to move assign from |=== Return the element at a given index. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[Value] at(std::string_view i) const; ---- == Return Value The value at the specified index, or null if the index is out of range. == Parameters [cols=2] |=== | Name | Description | *i* | The index. |=== Return true if the container is empty. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool empty() const; ---- == Return Value true if the container is empty. Return true if a key exists. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool exists(std::string_view key) const; ---- == Return Value `true` if the key exists, otherwise `false`. == Parameters [cols=2] |=== | Name | Description | *key* | The key to check for existence. |=== Return the element with the specified key == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[Value] get(std::string_view key) const; ---- == Return Value The value for the specified key, or null if the key does not exist. == Parameters [cols=2] |=== | Name | Description | *key* | The key. |=== Return the implementation used by this object. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object-impl_type[impl_type] const& impl() const noexcept; ---- == Return Value the implementation used by this object. Set or replace the value for a given key. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void set( link:#clang-mrdocs-dom-String[String] key, link:#clang-mrdocs-dom-Value[Value] value) const; ---- == Description This function inserts a new key or changes the value for the existing key if it is already present. == Parameters [cols=2] |=== | Name | Description | *key* | The key. | *value* | The value to set. |=== Return the number of elements. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t size() const; ---- == Return Value the number of elements. Swap two objects. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(link:#clang-mrdocs-dom-Object[Object]& other) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *other* | A container of key and value pairs. |=== Return the type key. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char const* type_key() const noexcept; ---- == Return Value the type key. Invoke the visitor for each key/value pair == Synopses Declared in `<mrdocs/Dom/Object.hpp>` Invoke the visitor for each key/value pair [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires std::invocable<F, String, Value> && std::same_as<std::invoke_result_t<F, String, Value>, void> void link:#clang-mrdocs-dom-Object-visit-0d[visit](F&& fn) const; ---- [.small]#link:#clang-mrdocs-dom-Object-visit-0d[_» more..._]# Invoke the visitor for each key/value pair [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires std::invocable<F, String, Value> && mrdocs::detail::isExpected<std::invoke_result_t<F, String, Value>> link:#clang-mrdocs-Expected-03[Expected<void, std::invoke_result_t<F, String, Value>::error_type>] link:#clang-mrdocs-dom-Object-visit-04[visit](F&& fn) const; ---- [.small]#link:#clang-mrdocs-dom-Object-visit-04[_» more..._]# Invoke the visitor for each key/value pair [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires std::invocable<F, String, Value> && std::same_as<std::invoke_result_t<F, String, Value>, bool> bool link:#clang-mrdocs-dom-Object-visit-08[visit](F&& fn) const; ---- [.small]#link:#clang-mrdocs-dom-Object-visit-08[_» more..._]# == Return Value * `void` if the visitor returned did not return an error for any element, otherwise `E`. * `true` if the visitor returned `true` for all elements, otherwise `false`. == Parameters [cols=2] |=== | Name | Description | *fn* | The visitor function. |=== Invoke the visitor for each key/value pair == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires std::invocable<F, String, Value> && std::same_as<std::invoke_result_t<F, String, Value>, void> void visit(F&& fn) const; ---- == Parameters [cols=2] |=== | Name | Description | *fn* | The visitor function. |=== Invoke the visitor for each key/value pair == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires std::invocable<F, String, Value> && mrdocs::detail::isExpected<std::invoke_result_t<F, String, Value>> link:#clang-mrdocs-Expected-03[Expected<void, std::invoke_result_t<F, String, Value>::error_type>] visit(F&& fn) const; ---- == Description The visitor function must return `void` to continue iteration, or an `Unexpected<E>` to stop iteration early. If an error is returned, the iteration stops and the error is returned from this function. == Return Value * `void` if the visitor returned did not return an error for any element, otherwise `E`. * `void` if the visitor returned did not return an error for any element, otherwise `E`. == Parameters [cols=2] |=== | Name | Description | *fn* | The visitor function. |=== Invoke the visitor for each key/value pair == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires std::invocable<F, String, Value> && std::same_as<std::invoke_result_t<F, String, Value>, bool> bool visit(F&& fn) const; ---- == Description The visitor function must return `true` to continue iteration, or `false` to stop iteration early. == Return Value `true` if the visitor returned `true` for all elements, otherwise `false`. == Parameters [cols=2] |=== | Name | Description | *fn* | The visitor function. |=== Abstract object interface. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ObjectImpl; ---- == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-ObjectImpl-reference[`reference`] | A reference to an element. | link:#clang-mrdocs-dom-ObjectImpl-storage_type[`storage_type`] | The type of storage used by the default implementation. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-ObjectImpl-2destructor[`~ObjectImpl`] [.small]#[destructor]# [.small]#[virtual]# | Destructor. | link:#clang-mrdocs-dom-ObjectImpl-exists[`exists`] [.small]#[virtual]# | Determine if a key exists. | link:#clang-mrdocs-dom-ObjectImpl-get[`get`] [.small]#[virtual]# | Return the value for the specified key, or null. | link:#clang-mrdocs-dom-ObjectImpl-set[`set`] [.small]#[virtual]# | Insert or set the given key/value pair. | link:#clang-mrdocs-dom-ObjectImpl-size[`size`] [.small]#[virtual]# | Return the number of properties in the object. | link:#clang-mrdocs-dom-ObjectImpl-type_key[`type_key`] [.small]#[virtual]# | Return the type key of the implementation. | link:#clang-mrdocs-dom-ObjectImpl-visit[`visit`] [.small]#[virtual]# | Invoke the visitor for each key/value pair. |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-DefaultObjectImpl[`DefaultObjectImpl`] | The default Object implementation. | link:#clang-mrdocs-dom-LazyObjectImpl[`LazyObjectImpl`] | Lazy object implementation. |=== == Description This interface is used by Object types. A reference to an element. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using reference = link:#clang-mrdocs-dom-Object-reference[Object::reference]; ---- == Description This is a read‐only reference to an element. The type of storage used by the default implementation. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using storage_type = link:#clang-mrdocs-dom-Object-storage_type[Object::storage_type]; ---- Destructor. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual ~ObjectImpl(); ---- Determine if a key exists. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool exists(std::string_view key) const; ---- == Return Value `true` if the key exists, otherwise `false`. == Parameters [cols=2] |=== | Name | Description | *key* | The key to check for existence. |=== Return the value for the specified key, or null. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-Value[Value] get(std::string_view key) const = 0; ---- == Return Value The value for the specified key, or null if the key does not exist. == Parameters [cols=2] |=== | Name | Description | *key* | The key. |=== Insert or set the given key/value pair. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void set( link:#clang-mrdocs-dom-String[String] key, link:#clang-mrdocs-dom-Value[Value] value) = 0; ---- == Parameters [cols=2] |=== | Name | Description | *key* | The key. | *value* | The value to set. |=== Return the number of properties in the object. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::size_t size() const = 0; ---- == Return Value the number of properties in the object. Return the type key of the implementation. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual char const* type_key() const noexcept; ---- == Return Value the type key of the implementation. Invoke the visitor for each key/value pair. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool visit(std::function<bool(link:#clang-mrdocs-dom-String[String], link:#clang-mrdocs-dom-Value[Value])> fn) const = 0; ---- == Description The visitor function must return `true` to continue iteration, or `false` to stop. The visit function returns `true` if the visitor returned `true` for all elements, otherwise `false`. == Return Value `true` if the visitor returned `true` for all elements, otherwise `false`. == Parameters [cols=2] |=== | Name | Description | *fn* | The visitor function. |=== == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class String final ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-String-2constructor-0e[`String`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-dom-String-2destructor[`~String`] [.small]#[destructor]# | Destructor. | link:#clang-mrdocs-dom-String-operator_assign-00[`operator=`] | Assignment. | link:#clang-mrdocs-dom-String-c_str[`c_str`] | Return the string. | link:#clang-mrdocs-dom-String-data[`data`] | Return the string. | link:#clang-mrdocs-dom-String-empty[`empty`] | Return true if the string is empty. | link:#clang-mrdocs-dom-String-get[`get`] | Return the string. | link:#clang-mrdocs-dom-String-size[`size`] | Return the size. | link:#clang-mrdocs-dom-String-str[`str`] | Return the string. | link:#clang-mrdocs-dom-String-swap[`swap`] | Swap two strings. | link:#clang-mrdocs-dom-String-2conversion[`operator std::string_view`] | Return the string. |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-operator_plus-026[clang::mrdocs::dom::operator+]` | | `link:#clang-mrdocs-dom-operator_plus-0b8[clang::mrdocs::dom::operator+]` | | `link:#clang-mrdocs-dom-operator_plus-069[clang::mrdocs::dom::operator+]` | Concatenate two strings. | `link:#clang-mrdocs-dom-operator_3way-05[clang::mrdocs::dom::operator<=>]` | Return the result of comparing two strings. | `link:#clang-mrdocs-dom-operator_not_eq-05[clang::mrdocs::dom::operator!=]` | Return the result of comparing two strings. | `link:#clang-mrdocs-dom-operator_eq-0c[clang::mrdocs::dom::operator==]` | Return the result of comparing two strings. | `link:#clang-mrdocs-dom-operator_3way-0f4[clang::mrdocs::dom::operator<=>]` | Return the result of comparing two strings. | `link:#clang-mrdocs-dom-operator_not_eq-0d[clang::mrdocs::dom::operator!=]` | Return the result of comparing two strings. | `link:#clang-mrdocs-dom-operator_eq-0b[clang::mrdocs::dom::operator==]` | Return the result of comparing two strings. | `link:#clang-mrdocs-dom-swap-03[clang::mrdocs::dom::swap]` | Swap two strings. |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-toString-04[`::clang::mrdocs::toString`] | Convert ExplicitInfo to a string. | link:#clang-mrdocs-toString-0b4b[`::clang::mrdocs::toString`] | Return the name of the InfoKind as a string. | link:#clang-mrdocs-toString-0d1[`::clang::mrdocs::toString`] | Convert NoexceptInfo to a string. | link:#clang-mrdocs-doc-toString-003[`::clang::mrdocs::doc::toString`] | Return the name of the link:#clang-mrdocs-doc-Style[`Style`] as a string. | link:#clang-mrdocs-doc-toString-00b[`::clang::mrdocs::doc::toString`] | Return the name of the NodeKind as a string. | link:#clang-mrdocs-doc-toString-04[`::clang::mrdocs::doc::toString`] | Return the name of the Parts as a string. | link:#clang-mrdocs-doc-toString-0b[`::clang::mrdocs::doc::toString`] | Return the name of the ParamDirection as a string. | link:#clang-mrdocs-doc-toString-0f[`::clang::mrdocs::doc::toString`] | Return the name of the Admonish as a string. |=== Constructor. == Synopses Declared in `<mrdocs/Dom/String.hpp>` Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-dom-String-2constructor-0b[String]() noexcept = default; ---- [.small]#link:#clang-mrdocs-dom-String-2constructor-0b[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String-2constructor-051[String](link:#clang-mrdocs-dom-String[String] const& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-String-2constructor-051[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-dom-String-2constructor-06[String](link:#clang-mrdocs-dom-String[String]&& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-String-2constructor-06[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String-2constructor-0a[String](std::string_view sv); ---- [.small]#link:#clang-mrdocs-dom-String-2constructor-0a[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] StringLike> link:#clang-mrdocs-dom-String-2constructor-050[String](StringLike const& s); ---- [.small]#link:#clang-mrdocs-dom-String-2constructor-050[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::size_t N> constexpr link:#clang-mrdocs-dom-String-2constructor-0f[String](char const(& str)[]); ---- [.small]#link:#clang-mrdocs-dom-String-2constructor-0f[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String-2constructor-0c[String]( char const* str, std::size_t len); ---- [.small]#link:#clang-mrdocs-dom-String-2constructor-0c[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *sv* | The string to construct with. A copy of this string is made. | *s* | The string to construct with. A copy of this string is made. | *str* | A null‐terminated string. If the string is not null‐terminated, the result is undefined. | *len* | The length of the string. |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr String() noexcept = default; ---- == Description Default constructed strings have a zero size, and include a null terminator. Constructor. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- String(link:#clang-mrdocs-dom-String[String] const& other) noexcept; ---- == Description The newly constructed string acquries shared ownership of the string referenced by other. == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr String(link:#clang-mrdocs-dom-String[String]&& other) noexcept; ---- == Description Ownership of the string is transferred to the newly constructed string. The moved‐from string behaves as if default constructed. == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- String(std::string_view sv); ---- == Description This function constructs a new string from the buffer pointed to by `sv`. == Parameters [cols=2] |=== | Name | Description | *sv* | The string to construct with. A copy of this string is made. |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] StringLike> String(StringLike const& s); ---- == Description This function constructs a new string from s, which must be convertible to `std::string_view`. == Parameters [cols=2] |=== | Name | Description | *s* | The string to construct with. A copy of this string is made. |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::size_t N> constexpr String(char const(& str)[]); ---- == Description This function constructs a string literal which references the buffer pointed to by `str`. Ownership is not transferred; the lifetime of the buffer must extend until the string is destroyed, otherwise the behavior is undefined. == Parameters [cols=2] |=== | Name | Description | *str* | A null‐terminated string. If the string is not null‐terminated, the result is undefined. |=== Constructor. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- String( char const* str, std::size_t len); ---- == Description This function constructs a new string from the string pointed to by `str` of length `len`. == Parameters [cols=2] |=== | Name | Description | *str* | The string to construct with. A copy of this string is made. | *len* | The length of the string. |=== Destructor. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~String() noexcept; ---- Assignment. == Synopses Declared in `<mrdocs/Dom/String.hpp>` Assignment. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[String]& link:#clang-mrdocs-dom-String-operator_assign-01[operator=](link:#clang-mrdocs-dom-String[String] const& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-String-operator_assign-01[_» more..._]# Assignment. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[String]& link:#clang-mrdocs-dom-String-operator_assign-08[operator=](link:#clang-mrdocs-dom-String[String]&& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-String-operator_assign-08[_» more..._]# Assignment. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[String]& operator=(link:#clang-mrdocs-dom-String[String] const& other) noexcept; ---- == Description This acquires shared ownership of the string referenced by other. Ownership of the previously referenced string is released. == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Assignment. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[String]& operator=(link:#clang-mrdocs-dom-String[String]&& other) noexcept; ---- == Description This transfers ownership of the string referenced by other to this. Ownership of the previously referened string is released. After the assignment, the moved‐from string behaves as if default constructed. == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to move assign from |=== Return the string. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char const* c_str() const noexcept; ---- == Description The pointed‐to character buffer returned by this function is always null‐terminated. == Return Value the string. Return the string. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char const* data() const noexcept; ---- == Description The pointed‐to character buffer returned by this function is always null‐terminated. == Return Value the string. Return true if the string is empty. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool empty() const noexcept; ---- == Return Value true if the string is empty. Return the string. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view get() const noexcept; ---- == Return Value the string. Return the size. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t size() const noexcept; ---- == Return Value the size. Return the string. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string str() const noexcept; ---- == Return Value the string. Swap two strings. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void swap(link:#clang-mrdocs-dom-String[String]& other) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The other string. |=== Return the string. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- operator std::string_view() const noexcept; ---- == Return Value the string. A variant container for any kind of Dom value. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Value; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-Value-2constructor-0b[`Value`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-dom-Value-2destructor[`~Value`] [.small]#[destructor]# | Destructor | link:#clang-mrdocs-dom-Value-operator_assign-09[`operator=`] | Assignment operators | link:#clang-mrdocs-dom-Value-empty[`empty`] | Return if an Array or Object is empty. | link:#clang-mrdocs-dom-Value-exists[`exists`] | Return true if a key exists. | link:#clang-mrdocs-dom-Value-get-05[`get`] | `get` overloads | link:#clang-mrdocs-dom-Value-getArray-00[`getArray`] | Return the array. | link:#clang-mrdocs-dom-Value-getBool[`getBool`] | Return the underlying boolean value. | link:#clang-mrdocs-dom-Value-getFunction[`getFunction`] | Return the function. | link:#clang-mrdocs-dom-Value-getInteger[`getInteger`] | Return the underlying integer value. | link:#clang-mrdocs-dom-Value-getObject[`getObject`] | Return the object. | link:#clang-mrdocs-dom-Value-getString[`getString`] | Return the underlying string value. | link:#clang-mrdocs-dom-Value-isArray[`isArray`] | Return true if this is an array. | link:#clang-mrdocs-dom-Value-isBoolean[`isBoolean`] | Return true if this is a boolean. | link:#clang-mrdocs-dom-Value-isFunction[`isFunction`] | Return true if this is a function. | link:#clang-mrdocs-dom-Value-isInteger[`isInteger`] | Return true if this is an integer. | link:#clang-mrdocs-dom-Value-isNull[`isNull`] | Return true if this is null. | link:#clang-mrdocs-dom-Value-isObject[`isObject`] | Return true if this is an object. | link:#clang-mrdocs-dom-Value-isSafeString[`isSafeString`] | Return true if this is a safe string. | link:#clang-mrdocs-dom-Value-isString[`isString`] | Return true if this is a string. | link:#clang-mrdocs-dom-Value-isTruthy[`isTruthy`] | Determine if a value is truthy | link:#clang-mrdocs-dom-Value-isUndefined[`isUndefined`] | Return true if this is undefined. | link:#clang-mrdocs-dom-Value-kind[`kind`] | Return the type of value contained. | link:#clang-mrdocs-dom-Value-lookup[`lookup`] | Lookup a sequence of keys. | link:#clang-mrdocs-dom-Value-operator_call[`operator()`] | Invoke the function. | link:#clang-mrdocs-dom-Value-set[`set`] | Set or replace the value for a given key. | link:#clang-mrdocs-dom-Value-size[`size`] | Return if an Array or Object is empty. | link:#clang-mrdocs-dom-Value-swap[`swap`] | Swap two values. | link:#clang-mrdocs-dom-Value-type_key[`type_key`] | Return the type key of the value. | link:#clang-mrdocs-dom-Value-2conversion-07[`operator std::string`] | Return the string. | link:#clang-mrdocs-dom-Value-2conversion-09[`operator bool`] | Determine if a value is truthy |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-dom-Value-arr_[`arr_`] [.small]#[variant member]# | link:#clang-mrdocs-dom-Value-b_[`b_`] [.small]#[variant member]# | link:#clang-mrdocs-dom-Value-fn_[`fn_`] [.small]#[variant member]# | link:#clang-mrdocs-dom-Value-i_[`i_`] [.small]#[variant member]# | link:#clang-mrdocs-dom-Value-obj_[`obj_`] [.small]#[variant member]# | link:#clang-mrdocs-dom-Value-str_[`str_`] [.small]#[variant member]# |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-toString-04[clang::mrdocs::dom::toString]` | Return value as a string. | `link:#clang-mrdocs-dom-operator_and-08b[clang::mrdocs::dom::operator&&]` | | `link:#clang-mrdocs-dom-operator_and-082[clang::mrdocs::dom::operator&&]` | | `link:#clang-mrdocs-dom-operator_and-0b[clang::mrdocs::dom::operator&&]` | Return the first dom::Value that is not truthy, or the last one. | `link:#clang-mrdocs-dom-operator_or-09[clang::mrdocs::dom::operator||]` | | `link:#clang-mrdocs-dom-operator_or-04[clang::mrdocs::dom::operator||]` | | `link:#clang-mrdocs-dom-operator_or-03[clang::mrdocs::dom::operator||]` | Return the first dom::Value that is truthy, or the last one. | `link:#clang-mrdocs-dom-operator_plus-065[clang::mrdocs::dom::operator+]` | | `link:#clang-mrdocs-dom-operator_plus-064[clang::mrdocs::dom::operator+]` | | `link:#clang-mrdocs-dom-operator_plus-00[clang::mrdocs::dom::operator+]` | Add or concatenate two values. | `link:#clang-mrdocs-dom-operator_3way-00[clang::mrdocs::dom::operator<=>]` | Three‐way comparison operator | `link:#clang-mrdocs-dom-operator_3way-0a[clang::mrdocs::dom::operator<=>]` | Three‐way comparison operator | `link:#clang-mrdocs-dom-operator_3way-09[clang::mrdocs::dom::operator<=>]` | Compare two values for inequality. | `link:#clang-mrdocs-dom-operator_eq-06[clang::mrdocs::dom::operator==]` | Compare two values for equality. | `link:#clang-mrdocs-dom-swap-09[clang::mrdocs::dom::swap]` | Swap two values. | `link:#clang-mrdocs-safeString-06[clang::mrdocs::safeString]` | Create a wrapper for a safe string. | `link:#clang-mrdocs-dom-Object[clang::mrdocs::dom::Object]` | A container of key and value pairs. | `link:#clang-mrdocs-dom-Array[clang::mrdocs::dom::Array]` | An array of values |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-ValueFrom-03[`ValueFrom`] | Convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`]. | link:#clang-mrdocs-dom-ValueFrom-053[`ValueFrom`] | Convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`] with a context | link:#clang-mrdocs-dom-stringOrNull[`stringOrNull`] | Return a non‐empty string, or a null. | link:#clang-mrdocs-dom-JSON-stringify[`JSON::stringify`] | Stringify a value as JSON | link:#clang-mrdocs-isEmpty[`::clang::mrdocs::isEmpty`] | Determine if a value is empty | link:#clang-mrdocs-helpers-detag_fn[`::clang::mrdocs::helpers::detag_fn`] | "detag" helper function | link:#clang-mrdocs-helpers-increment_fn[`::clang::mrdocs::helpers::increment_fn`] | "increment" helper function | link:#clang-mrdocs-helpers-or_fn[`::clang::mrdocs::helpers::or_fn`] | "or" helper function | link:#clang-mrdocs-helpers-relativize_fn[`::clang::mrdocs::helpers::relativize_fn`] | "relativize" helper function | link:#clang-mrdocs-helpers-select_fn[`::clang::mrdocs::helpers::select_fn`] | "select" helper function |=== Constructors == Synopses Declared in `<mrdocs/Dom/Value.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-03[Value]() noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-03[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-0c58[Value](link:#clang-mrdocs-dom-Value[Value] const& other); ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-0c58[_» more..._]# Move constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-07c[Value](link:#clang-mrdocs-dom-Value[Value]&& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-07c[_» more..._]# Construct from `Array` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-0e[Value](link:#clang-mrdocs-dom-Array[Array] arr) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-0e[_» more..._]# Construct from `Function` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-097[Value](link:#clang-mrdocs-dom-Function[Function] fn) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-097[_» more..._]# Construct from `Kind` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-075[Value](link:#clang-mrdocs-dom-Kind[dom::Kind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-075[_» more..._]# Construct from `Object` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-099[Value](link:#clang-mrdocs-dom-Object[Object] obj) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-099[_» more..._]# Construct from `String` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-02[Value](link:#clang-mrdocs-dom-String[String] str) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-02[_» more..._]# Construct from `int64_t` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-0d0[Value](int64_t v) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-0d0[_» more..._]# Construct from `nullptr_t` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-018[Value](std::nullptr_t v) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-018[_» more..._]# Construct from `storage_type` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-074[Value](link:#clang-mrdocs-dom-Array-storage_type[Array::storage_type] elements); ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-074[_» more..._]# Construct from `char` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-0c59[Value](char c) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-0c59[_» more..._]# Construct from `char` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value-2constructor-010[Value](char const* s); ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-010[_» more..._]# Construct from `T` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::floating_point T> link:#clang-mrdocs-dom-Value-2constructor-061[Value](T v) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-061[_» more..._]# Construct from `T` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::integral T> requires (!std::same_as<T, bool>) && (!std::same_as<T, char>) link:#clang-mrdocs-dom-Value-2constructor-056[Value](T v) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-056[_» more..._]# Construct from `Boolean` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<String> Boolean> link:#clang-mrdocs-dom-Value-2constructor-0c7[Value](Boolean const& b); ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-0c7[_» more..._]# Construct from `F` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires function_traits_convertible_to_value<F> link:#clang-mrdocs-dom-Value-2constructor-064[Value](F const& f); ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-064[_» more..._]# Construct from `Optional` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> requires std::constructible_from<Value, T> link:#clang-mrdocs-dom-Value-2constructor-04[Value](link:#clang-mrdocs-Optional[Optional<T>] const& opt); ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-04[_» more..._]# Construct from `optional` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> requires std::constructible_from<Value, T> link:#clang-mrdocs-dom-Value-2constructor-0d6[Value](std::optional<T> const& opt); ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-0d6[_» more..._]# Construct from `char` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::size_t N> link:#clang-mrdocs-dom-Value-2constructor-059[Value](char const(& sz)[]); ---- [.small]#link:#clang-mrdocs-dom-Value-2constructor-059[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value() noexcept; ---- Copy constructor == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-dom-Value[Value] const& other); ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Move constructor == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-dom-Value[Value]&& other) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Construct from `Array` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-dom-Array[Array] arr) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *arr* | The object to construct from |=== Construct from `Function` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-dom-Function[Function] fn) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *fn* | The object to construct from |=== Construct from `Kind` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-dom-Kind[dom::Kind] kind) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *kind* | The object to construct from |=== Construct from `Object` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-dom-Object[Object] obj) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *obj* | The object to construct from |=== Construct from `String` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-dom-String[String] str) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *str* | The object to construct from |=== Construct from `int64_t` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(int64_t v) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *v* | The object to construct from |=== Construct from `nullptr_t` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(std::nullptr_t v) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *v* | The object to construct from |=== Construct from `storage_type` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-dom-Array-storage_type[Array::storage_type] elements); ---- == Parameters [cols=2] |=== | Name | Description | *elements* | The object to construct from |=== Construct from `char` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(char c) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *c* | The value to construct from |=== Construct from `char` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(char const* s); ---- == Parameters [cols=2] |=== | Name | Description | *s* | The value to construct from |=== Construct from `T` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::floating_point T> Value(T v) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *v* | The object to construct from |=== Construct from `T` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::integral T> requires (!std::same_as<T, bool>) && (!std::same_as<T, char>) Value(T v) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *v* | The object to construct from |=== Construct from `Boolean` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<String> Boolean> Value(Boolean const& b); ---- == Parameters [cols=2] |=== | Name | Description | *b* | The object to copy construct from |=== Construct from `F` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires function_traits_convertible_to_value<F> Value(F const& f); ---- == Parameters [cols=2] |=== | Name | Description | *f* | The object to copy construct from |=== Construct from `Optional` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> requires std::constructible_from<Value, T> Value(link:#clang-mrdocs-Optional[Optional<T>] const& opt); ---- == Parameters [cols=2] |=== | Name | Description | *opt* | The object to copy construct from |=== Construct from `optional` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> requires std::constructible_from<Value, T> Value(std::optional<T> const& opt); ---- == Parameters [cols=2] |=== | Name | Description | *opt* | The object to copy construct from |=== Construct from `char` == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::size_t N> Value(char const(& sz)[]); ---- == Parameters [cols=2] |=== | Name | Description | *sz* | The value to construct from |=== Destructor == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~Value(); ---- Assignment operators == Synopses Declared in `<mrdocs/Dom/Value.hpp>` Copy assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[Value]& link:#clang-mrdocs-dom-Value-operator_assign-05[operator=](link:#clang-mrdocs-dom-Value[Value] const& other); ---- [.small]#link:#clang-mrdocs-dom-Value-operator_assign-05[_» more..._]# Move assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[Value]& link:#clang-mrdocs-dom-Value-operator_assign-0f[operator=](link:#clang-mrdocs-dom-Value[Value]&& other) noexcept; ---- [.small]#link:#clang-mrdocs-dom-Value-operator_assign-0f[_» more..._]# Copy assignment operator == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[Value]& operator=(link:#clang-mrdocs-dom-Value[Value] const& other); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Move assignment operator == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[Value]& operator=(link:#clang-mrdocs-dom-Value[Value]&& other) noexcept; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to move assign from |=== Return if an Array or Object is empty. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool empty() const; ---- == Return Value if an Array or Object is empty. Return true if a key exists. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool exists(std::string_view key) const; ---- == Return Value `true` if the key exists, otherwise `false`. == Parameters [cols=2] |=== | Name | Description | *key* | The key to check for existence. |=== `get` overloads == Synopses Declared in `<mrdocs/Dom/Value.hpp>` Return the element at a given index. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] link:#clang-mrdocs-dom-Value-get-03[get](std::size_t i) const; ---- [.small]#link:#clang-mrdocs-dom-Value-get-03[_» more..._]# Return the element for a given key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] link:#clang-mrdocs-dom-Value-get-0e[get](std::string_view key) const; ---- [.small]#link:#clang-mrdocs-dom-Value-get-0e[_» more..._]# Return the element at a given index or key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] link:#clang-mrdocs-dom-Value-get-0d[get](link:#clang-mrdocs-dom-Value[dom::Value] const& i) const; ---- [.small]#link:#clang-mrdocs-dom-Value-get-0d[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<std::string_view> S> link:#clang-mrdocs-dom-Value[dom::Value] link:#clang-mrdocs-dom-Value-get-09[get](S const& key) const; ---- [.small]#link:#clang-mrdocs-dom-Value-get-09[_» more..._]# == Return Value * The value at the specified index, or a Value of type * The value for the specified key, or a Value of type link:#clang-mrdocs-dom-Kind[`Kind::Undefined`] if the key does not exist. == Parameters [cols=2] |=== | Name | Description | *i* | The index. | *key* | The key. |=== Return the element at a given index. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] get(std::size_t i) const; ---- == Return Value The value at the specified index, or a Value of type == Parameters [cols=2] |=== | Name | Description | *i* | The index. |=== Return the element for a given key. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] get(std::string_view key) const; ---- == Description If the Value is not an object, or the key is not found, a Value of type link:#clang-mrdocs-dom-Kind[`Kind::Undefined`] is returned. == Return Value The value for the specified key, or a Value of type link:#clang-mrdocs-dom-Kind[`Kind::Undefined`] if the key does not exist. == Parameters [cols=2] |=== | Name | Description | *key* | The key. |=== Return the element at a given index or key. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] get(link:#clang-mrdocs-dom-Value[dom::Value] const& i) const; ---- == Return Value the element at a given index or key. == Parameters [cols=2] |=== | Name | Description | *i* | A variant container for any kind of Dom value. |=== == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<std::string_view> S> link:#clang-mrdocs-dom-Value[dom::Value] get(S const& key) const; ---- Return the array. == Synopses Declared in `<mrdocs/Dom/Value.hpp>` Return the array. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[Array] const& link:#clang-mrdocs-dom-Value-getArray-08[getArray]() const; ---- [.small]#link:#clang-mrdocs-dom-Value-getArray-08[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[Array]& link:#clang-mrdocs-dom-Value-getArray-09[getArray](); ---- [.small]#link:#clang-mrdocs-dom-Value-getArray-09[_» more..._]# == Exceptions [cols=2] |=== | Name | Thrown on | link:#clang-mrdocs-Exception[`Exception`] | `! isArray()` |=== Return the array. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[Array] const& getArray() const; ---- == Exceptions [cols=2] |=== | Name | Thrown on | link:#clang-mrdocs-Exception[`Exception`] | `! isArray()` |=== == Return Value the array. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[Array]& getArray(); ---- == Return Value An array of values Return the underlying boolean value. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool getBool() const noexcept; ---- == Description [NOTE] Behaviour is undefined if `!isBoolean()` == Return Value the underlying boolean value. Return the function. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Function[Function] const& getFunction() const; ---- == Exceptions [cols=2] |=== | Name | Thrown on | link:#clang-mrdocs-Exception[`Exception`] | `! isFunction()` |=== == Return Value the function. Return the underlying integer value. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int64_t getInteger() const noexcept; ---- == Description [NOTE] Behaviour is undefined if `!isInteger()` == Return Value the underlying integer value. Return the object. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[Object] const& getObject() const; ---- == Exceptions [cols=2] |=== | Name | Thrown on | link:#clang-mrdocs-Exception[`Exception`] | `! isObject()` |=== == Return Value the object. Return the underlying string value. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[String] const& getString() const noexcept; ---- == Description [NOTE] Behaviour is undefined if `!isString()` == Return Value the underlying string value. Return true if this is an array. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isArray() const noexcept; ---- == Return Value true if this is an array. Return true if this is a boolean. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isBoolean() const noexcept; ---- == Return Value true if this is a boolean. Return true if this is a function. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isFunction() const noexcept; ---- == Return Value true if this is a function. Return true if this is an integer. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isInteger() const noexcept; ---- == Return Value true if this is an integer. Return true if this is null. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isNull() const noexcept; ---- == Return Value true if this is null. Return true if this is an object. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isObject() const noexcept; ---- == Return Value true if this is an object. Return true if this is a safe string. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isSafeString() const noexcept; ---- == Return Value true if this is a safe string. Return true if this is a string. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isString() const noexcept; ---- == Return Value true if this is a string. Determine if a value is truthy == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isTruthy() const noexcept; ---- == Description A value is truthy if it is a boolean and is true, a number and not zero, or an non‐empty string, array or object. == Return Value `true` if the value is truthy, `false` otherwise Return true if this is undefined. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isUndefined() const noexcept; ---- == Return Value true if this is undefined. Return the type of value contained. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Kind[dom::Kind] kind() const noexcept; ---- == Return Value the type of value contained. Lookup a sequence of keys. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] lookup(std::string_view keys) const; ---- == Description This function is equivalent to calling `get` multiple times, once for each key in the sequence of dot‐separated keys. == Return Value The value at the end of the sequence, or a Value of type link:#clang-mrdocs-dom-Kind[`Kind::Undefined`] if any key is not found. == Parameters [cols=2] |=== | Name | Description | *keys* | The dot‐separated sequence of keys. |=== Invoke the function. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> link:#clang-mrdocs-dom-Value[Value] operator()(Args...&&... args) const; ---- == Description If the Value is not an object, or the key is not found, a Value of type link:#clang-mrdocs-dom-Kind[`Kind::Undefined`] is returned. == Return Value Another instance of the object == Parameters [cols=2] |=== | Name | Description | *args* | The arguments to the function. |=== Set or replace the value for a given key. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void set( link:#clang-mrdocs-dom-String[String] const& key, link:#clang-mrdocs-dom-Value[Value] const& value); ---- == Parameters [cols=2] |=== | Name | Description | *key* | The key. | *value* | The value to set. |=== Return if an Array or Object is empty. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t size() const; ---- == Return Value if an Array or Object is empty. Swap two values. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(link:#clang-mrdocs-dom-Value[Value]& other) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *other* | A variant container for any kind of Dom value. |=== Return the type key of the value. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char const* type_key() const noexcept; ---- == Return Value the type key of the value. Return the string. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit operator std::string() const noexcept; ---- == Return Value the string. Determine if a value is truthy == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit operator bool() const noexcept; ---- == Description A value is truthy if it is a boolean and is true, a number and not zero, or an non‐empty string, array or object. == Return Value `true` if the value is truthy, `false` otherwise == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[Array] arr_; ---- == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool b_ = {false}; ---- == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Function[Function] fn_; ---- == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int64_t i_; ---- == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[Object] obj_; ---- == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[String] str_; ---- Customization point tag. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ValueFromTag; ---- == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-tag_invoke-001[`::clang::mrdocs::tag_invoke`] | Map the TypedefInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-008[`::clang::mrdocs::tag_invoke`] | Map the VariableInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-009[`::clang::mrdocs::tag_invoke`] | Return the AccessKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-tag_invoke-01b[`::clang::mrdocs::tag_invoke`] | Return the ExplicitInfo as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-tag_invoke-025[`::clang::mrdocs::tag_invoke`] | Return the UsingClass as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-tag_invoke-02b[`::clang::mrdocs::tag_invoke`] | Map the UsingInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-03b[`::clang::mrdocs::tag_invoke`] | Return the FunctionClass from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-tag_invoke-03c[`::clang::mrdocs::tag_invoke`] | Map the FriendInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-03f5[`::clang::mrdocs::tag_invoke`] | Map the NamespaceAliasInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-03f7[`::clang::mrdocs::tag_invoke`] | Return the InfoKind from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-tag_invoke-044[`::clang::mrdocs::tag_invoke`] | Return the StorageClassKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-tag_invoke-04d[`::clang::mrdocs::tag_invoke`] | Map the EnumConstantInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-060[`::clang::mrdocs::tag_invoke`] | Map the RecordInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-065[`::clang::mrdocs::tag_invoke`] | Map the NamespaceInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-06ef[`::clang::mrdocs::tag_invoke`] | Return the ReferenceKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-tag_invoke-06f[`::clang::mrdocs::tag_invoke`] | Map the FunctionInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-0876[`::clang::mrdocs::tag_invoke`] | Map the RecordInterface to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-087e[`::clang::mrdocs::tag_invoke`] | Map the EnumInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-099[`::clang::mrdocs::tag_invoke`] | Return the Param as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-09e7[`::clang::mrdocs::tag_invoke`] | Map the OverloadsInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-09eb[`::clang::mrdocs::tag_invoke`] | Map the NamespaceTranche to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-0aa[`::clang::mrdocs::tag_invoke`] | Return the ConstexprKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-tag_invoke-0ae[`::clang::mrdocs::tag_invoke`] | Convert SymbolID to dom::Value string in the DOM using toBase16 | link:#clang-mrdocs-tag_invoke-0af6[`::clang::mrdocs::tag_invoke`] | Map the Polymorphic Info as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-0b1[`::clang::mrdocs::tag_invoke`] | Map the RecordTranche to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-0b9[`::clang::mrdocs::tag_invoke`] | Map the ConceptInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-0d17[`::clang::mrdocs::tag_invoke`] | Convert SymbolID pointers to dom::Value or null. | link:#clang-mrdocs-tag_invoke-0d66[`::clang::mrdocs::tag_invoke`] | Convert SymbolID to dom::Value object in the DOM using Corpus | link:#clang-mrdocs-tag_invoke-0db[`::clang::mrdocs::tag_invoke`] | Return the InfoKind from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-tag_invoke-0ea[`::clang::mrdocs::tag_invoke`] | Return the Info as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-0f8[`::clang::mrdocs::tag_invoke`] | Return the link:#clang-mrdocs-Javadoc[`Javadoc`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-tag_invoke-0f9[`::clang::mrdocs::tag_invoke`] | Map the GuideInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-000[`::clang::mrdocs::doc::tag_invoke`] | Map the Polymorphic Node as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-002[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Brief[`Brief`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-014[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Param[`Param`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-029[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Precondition[`Precondition`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-02d[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Reference[`Reference`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-037[`::clang::mrdocs::doc::tag_invoke`] | Return the Admonish from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-doc-tag_invoke-045[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Block[`Block`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-04ea[`::clang::mrdocs::doc::tag_invoke`] | Return the Parts from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-doc-tag_invoke-04eb[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Styled[`Styled`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-0500[`::clang::mrdocs::doc::tag_invoke`] | Return the NodeKind from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-doc-tag_invoke-0661[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Style[`Style`] from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-doc-tag_invoke-067[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Link[`Link`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-06b[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Postcondition[`Postcondition`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-073[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Returns[`Returns`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-07f[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-See[`See`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-09c[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-TParam[`TParam`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-0a1[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Heading[`Heading`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-0a4[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-UnorderedList[`UnorderedList`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-0a6a[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Paragraph[`Paragraph`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-0ae[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Throws[`Throws`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-0b9[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Text[`Text`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-0c2[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Node[`Node`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-0cc[`::clang::mrdocs::doc::tag_invoke`] | Return the ParamDirection from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. | link:#clang-mrdocs-doc-tag_invoke-0d[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Code[`Code`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-0f4[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-CopyDetails[`CopyDetails`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-0fa[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-ListItem[`ListItem`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. | link:#clang-mrdocs-doc-tag_invoke-0ff[`::clang::mrdocs::doc::tag_invoke`] | Return the link:#clang-mrdocs-doc-Admonition[`Admonition`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. |=== == Description This tag type is used by the function link:#clang-mrdocs-dom-ValueFrom-0cc[`dom::ValueFrom`] to select overloads of `tag_invoke`. [NOTE] This type is empty; it has no members. == See Also link:#clang-mrdocs-dom-ValueFrom-0cc[`dom::ValueFrom`] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1895r0.pdf[] == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> class VariadicFunctionImpl : public link:#clang-mrdocs-dom-FunctionImpl[FunctionImpl] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-FunctionImpl[FunctionImpl]` | |=== == Types [cols=1] |=== | Name | link:#clang-mrdocs-dom-VariadicFunctionImpl-args_type[`args_type`] | link:#clang-mrdocs-dom-VariadicFunctionImpl-return_type[`return_type`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-VariadicFunctionImpl-2constructor[`VariadicFunctionImpl`] [.small]#[constructor]# | Construct from `U` | link:#clang-mrdocs-dom-VariadicFunctionImpl-call[`call`] [.small]#[virtual]# | | link:#clang-mrdocs-dom-VariadicFunctionImpl-type_key[`type_key`] [.small]#[virtual]# | |=== == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using args_type = function_traits<F>::args_type; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using return_type = function_traits<F>::return_type; ---- Construct from `U` == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> VariadicFunctionImpl(U&& u); ---- == Parameters [cols=2] |=== | Name | Description | *u* | The object to move construct from |=== == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Expected-03[Expected<Value>] call(link:#clang-mrdocs-dom-Array[Array] const& args) const override; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual char const* type_key() const noexcept override; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename F> struct function_traits; ---- == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-dom-function_traits-0a8[`function_traits`] | |=== == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename F> requires requires { &F::operator(); } struct link:#clang-mrdocs-dom-function_traits-00[function_traits]<F> : link:#clang-mrdocs-dom-function_traits-00[function_traits<decltype(&F::operator)>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-dom-function_traits-00[function_traits<decltype(&F::operator)>]` | |=== == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename R, typename... Args> struct link:#clang-mrdocs-dom-function_traits-00[function_traits]<R(*)(Args...)>; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-dom-function_traits-03-args_type[`args_type`] | link:#clang-mrdocs-dom-function_traits-03-return_type[`return_type`] |=== == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using args_type = std::tuple<Args...>; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using return_type = R; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename R, typename... Args> struct link:#clang-mrdocs-dom-function_traits-00[function_traits]<R(Args...)>; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-dom-function_traits-0e-args_type[`args_type`] | link:#clang-mrdocs-dom-function_traits-0e-return_type[`return_type`] |=== == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using args_type = std::tuple<Args...>; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using return_type = R; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename C, typename R, typename... Args> struct link:#clang-mrdocs-dom-function_traits-00[function_traits]<R const volatile(C::*)(Args...)>; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-dom-function_traits-0ae-args_type[`args_type`] | link:#clang-mrdocs-dom-function_traits-0ae-return_type[`return_type`] |=== == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using args_type = std::tuple<Args...>; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using return_type = R; ---- The type of data in a Value. == Synopsis Declared in `<mrdocs/Dom/Kind.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class Kind : int; ---- == Members [cols=2] |=== | Name | Description |`Undefined` |The value is undefined. |`Null` |The value is null. |`Boolean` |The value is a boolean. |`Integer` |The value is an integer. |`String` |The value is a string. |`SafeString` |The value is a safe string. |`Array` |The value is an array. |`Object` |The value is an object. |`Function` |The value is a function. |=== == Description This is the type of data stored in a Value. These types are loosely modeled after the JavaScript types and data structures. Primitive values are Undefined, Null, Boolean, Integer, and String. Undefined and Null are inhabited by a single value each. The difference between Undefined and Null is that Undefined is the default value for a Value, while Null represents a value that is explicitly set. Undefined is used to represent things such as: * An uninitialized Value * The Value returned from a function that failed to return a value * The result of accessing a nonexistent object property * The result of a `find` algorithm when no element is found This distinction is semantically important as algorithms frequently need to distinguish between these two cases. Booleans, Integers, and Strings are also primitive values. This means they are deeply copied when assigned or passed as a parameter. Other value types, such as Array, Object, and Function are reference types, meaning that they are not copied when assigned or passed as a parameter. Instead, the reference is copied, and the original value is shared. These reference types are modeled after JavaScript "Objects". All non‐primitive types (Object types) are derived from Object in JavaScript. This means types such as Array and Function represent a relevant selection of built‐in types that would derive from Object in JavaScript. Objects are a collection of properties, which are equivalent to key‐value pairs. Property values can be any type, including other Objects, allowing for the creation of arbitrarily complex data structures. * https://developer.mozilla.org/en‐US/docs/Web/JavaScript/Data_structures `LazyArray` overloads == Synopses Declared in `<mrdocs/Dom/LazyArray.hpp>` Return a new link:#clang-mrdocs-dom-Array[`dom::Array`] based on a lazy array implementation. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::ranges::random_access_range T> requires HasStandaloneValueFrom<std::ranges::range_value_t<T>> link:#clang-mrdocs-dom-Array[Array] link:#clang-mrdocs-dom-LazyArray-00[LazyArray](T const& arr); ---- [.small]#link:#clang-mrdocs-dom-LazyArray-00[_» more..._]# Return a new dom::Array based on a FromValue context [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::random_access_range T, class Context> requires HasValueFrom<std::ranges::range_value_t<T>, Context> link:#clang-mrdocs-dom-Array[Array] link:#clang-mrdocs-dom-LazyArray-0a[LazyArray]( T const& arr, Context const& ctx); ---- [.small]#link:#clang-mrdocs-dom-LazyArray-0a[_» more..._]# == Return Value * A new dom::Array whose elements are the result of converting each element in the underlying range to a dom::Value. * A new dom::Array whose elements are the result of converting each element in the underlying range using the specified context. == Parameters [cols=2] |=== | Name | Description | *arr* | The underlying range of elements. | *ctx* | The context used to convert each element to a dom::Value. |=== Return a new link:#clang-mrdocs-dom-Array[`dom::Array`] based on a lazy array implementation. == Synopsis Declared in `<mrdocs/Dom/LazyArray.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::ranges::random_access_range T> requires HasStandaloneValueFrom<std::ranges::range_value_t<T>> link:#clang-mrdocs-dom-Array[Array] LazyArray(T const& arr); ---- == Return Value A new dom::Array whose elements are the result of converting each element in the underlying range to a dom::Value. == Parameters [cols=2] |=== | Name | Description | *arr* | The underlying range of elements. |=== Return a new dom::Array based on a FromValue context == Synopsis Declared in `<mrdocs/Dom/LazyArray.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::random_access_range T, class Context> requires HasValueFrom<std::ranges::range_value_t<T>, Context> link:#clang-mrdocs-dom-Array[Array] LazyArray( T const& arr, Context const& ctx); ---- == Return Value A new dom::Array whose elements are the result of converting each element in the underlying range using the specified context. == Parameters [cols=2] |=== | Name | Description | *arr* | The underlying range of elements. | *ctx* | The context used to convert each element to a dom::Value. |=== `LazyObject` overloads == Synopses Declared in `<mrdocs/Dom/LazyObject.hpp>` Return a new dom::Object based on a lazy object implementation. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-HasLazyObjectMapWithoutContext[HasLazyObjectMapWithoutContext] T> link:#clang-mrdocs-dom-Object[Object] link:#clang-mrdocs-dom-LazyObject-01[LazyObject](T const& obj); ---- [.small]#link:#clang-mrdocs-dom-LazyObject-01[_» more..._]# Return a new dom::Object based on a transformed lazy array implementation. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class Context> requires HasLazyObjectMap<T, Context> link:#clang-mrdocs-dom-Object[Object] link:#clang-mrdocs-dom-LazyObject-0e[LazyObject]( T const& arr, Context const& context); ---- [.small]#link:#clang-mrdocs-dom-LazyObject-0e[_» more..._]# == Return Value * A new dom::Object whose properties are the result of converting each property in the underlying object to a dom::Value. * A new dom::Array whose elements are the result of converting each element in the underlying range using the specified context. == Parameters [cols=2] |=== | Name | Description | *obj* | The underlying object. | *arr* | The underlying range of elements. | *context* | The context used to convert each element to a dom::Value. |=== Return a new dom::Object based on a lazy object implementation. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-HasLazyObjectMapWithoutContext[HasLazyObjectMapWithoutContext] T> link:#clang-mrdocs-dom-Object[Object] LazyObject(T const& obj); ---- == Return Value A new dom::Object whose properties are the result of converting each property in the underlying object to a dom::Value. == Parameters [cols=2] |=== | Name | Description | *obj* | The underlying object. |=== Return a new dom::Object based on a transformed lazy array implementation. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class Context> requires HasLazyObjectMap<T, Context> link:#clang-mrdocs-dom-Object[Object] LazyObject( T const& arr, Context const& context); ---- == Return Value A new dom::Array whose elements are the result of converting each element in the underlying range using the specified context. == Parameters [cols=2] |=== | Name | Description | *arr* | The underlying range of elements. | *context* | The context used to convert each element to a dom::Value. |=== Return a new dom::Array based on a transformed lazy array implementation. == Synopsis Declared in `<mrdocs/Dom/LazyArray.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::random_access_range T, class F> requires std::invocable<F, std::ranges::range_value_t<T>> && HasStandaloneValueFrom<std::invoke_result_t<F, std::ranges::range_value_t<T>>> link:#clang-mrdocs-dom-Array[Array] TransformArray( T const& arr, F const& f); ---- == Return Value A new dom::Array whose elements are the result of applying the transform function to each element in the underlying range. == Parameters [cols=2] |=== | Name | Description | *arr* | The underlying range of elements. | *f* | The transform function to apply to each element before converting it to a dom::Value. |=== `ValueFrom` overloads == Synopses Declared in `<mrdocs/Dom/Value.hpp>` Convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> requires HasStandaloneValueFrom<T> link:#clang-mrdocs-dom-Value[Value] link:#clang-mrdocs-dom-ValueFrom-03[ValueFrom](T&& t); ---- [.small]#link:#clang-mrdocs-dom-ValueFrom-03[_» more..._]# Convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> requires HasStandaloneValueFrom<T> void link:#clang-mrdocs-dom-ValueFrom-0ca[ValueFrom]( T&& t, link:#clang-mrdocs-dom-Value[Value]& v); ---- [.small]#link:#clang-mrdocs-dom-ValueFrom-0ca[_» more..._]# Convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`] with a context [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class Context> requires HasValueFrom<T, Context> link:#clang-mrdocs-dom-Value[Value] link:#clang-mrdocs-dom-ValueFrom-053[ValueFrom]( T&& t, Context const& ctx); ---- [.small]#link:#clang-mrdocs-dom-ValueFrom-053[_» more..._]# Convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class Context, link:#clang-mrdocs-dom-HasValueFrom[HasValueFrom<Context>] T> void link:#clang-mrdocs-dom-ValueFrom-05d[ValueFrom]( T&& t, Context const& ctx, link:#clang-mrdocs-dom-Value[Value]& v); ---- [.small]#link:#clang-mrdocs-dom-ValueFrom-05d[_» more..._]# == Return Value link:#clang-mrdocs-dom-Value[`dom::Value`] out parameter. == Template Parameters [cols=2] |=== | Name | Description | *T* | The type of the object to convert. | *Context* | The type of context passed to the conversion function. |=== == Parameters [cols=2] |=== | Name | Description | *t* | The object to convert. | *v* | link:#clang-mrdocs-dom-Value[`dom::Value`] out parameter. | *ctx* | Context passed to the conversion function. |=== == See Also link:#clang-mrdocs-dom-ValueFromTag[`dom::ValueFromTag`], http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1895r0.pdf[] link:#clang-mrdocs-dom-ValueFromTag[`dom::ValueFromTag`] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1895r0.pdf[] Convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`]. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> requires HasStandaloneValueFrom<T> link:#clang-mrdocs-dom-Value[Value] ValueFrom(T&& t); ---- == Description This function attempts to convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`] using * a user‐provided overload of `tag_invoke`. * one of `dom::Value`'s constructors, Conversion of other types is done by calling an overload of `tag_invoke` found by argument‐dependent lookup. Its signature should be similar to: [,cpp] ---- void tag_invoke( ValueFromTag, dom::Value&, T ); ---- == Exception Safety Strong guarantee. == Return Value link:#clang-mrdocs-dom-Value[`dom::Value`] out parameter. == Template Parameters [cols=2] |=== | Name | Description | *T* | The type of the object to convert. |=== == Parameters [cols=2] |=== | Name | Description | *t* | The object to convert. |=== == See Also link:#clang-mrdocs-dom-ValueFromTag[`dom::ValueFromTag`], http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1895r0.pdf[] Convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`]. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> requires HasStandaloneValueFrom<T> void ValueFrom( T&& t, link:#clang-mrdocs-dom-Value[Value]& v); ---- == Description This function attempts to convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`] using * a user‐provided overload of `tag_invoke`. * one of `dom::Value`'s constructors, Conversion of other types is done by calling an overload of `tag_invoke` found by argument‐dependent lookup. Its signature should be similar to: [,cpp] ---- void tag_invoke( ValueFromTag, dom::Value&, T ); ---- == Exception Safety Strong guarantee. == Template Parameters [cols=2] |=== | Name | Description | *T* | The type of the object to convert. |=== == Parameters [cols=2] |=== | Name | Description | *t* | The object to convert. | *v* | link:#clang-mrdocs-dom-Value[`dom::Value`] out parameter. |=== == See Also link:#clang-mrdocs-dom-ValueFromTag[`dom::ValueFromTag`] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1895r0.pdf[] Convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`] with a context == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class Context> requires HasValueFrom<T, Context> link:#clang-mrdocs-dom-Value[Value] ValueFrom( T&& t, Context const& ctx); ---- == Description This function attempts to convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`] using * a user‐provided overload of `tag_invoke`. * one of `dom::Value`'s constructors, Conversion of other types is done by calling an overload of `tag_invoke` found by argument‐dependent lookup. Its signature should be similar to: [,cpp] ---- void tag_invoke( ValueFromTag, dom::Value&, T ); ---- == Exception Safety Strong guarantee. == Return Value link:#clang-mrdocs-dom-Value[`dom::Value`] out parameter. == Template Parameters [cols=2] |=== | Name | Description | *T* | The type of the object to convert. |=== == Parameters [cols=2] |=== | Name | Description | *t* | The object to convert. | *ctx* | Context passed to the conversion function. |=== == See Also link:#clang-mrdocs-dom-ValueFromTag[`dom::ValueFromTag`], http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1895r0.pdf[] Convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`]. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class Context, link:#clang-mrdocs-dom-HasValueFrom[HasValueFrom<Context>] T> void ValueFrom( T&& t, Context const& ctx, link:#clang-mrdocs-dom-Value[Value]& v); ---- == Description This function attempts to convert an object of type `T` to link:#clang-mrdocs-dom-Value[`dom::Value`] using * a user‐provided overload of `tag_invoke`. * one of `dom::Value`'s constructors, Conversion of user‐provided types is done by calling an overload of `tag_invoke` found by argument‐dependent lookup. Its signature should be similar to: [,cpp] ---- void tag_invoke( ValueFromTag, dom::Value&, T, Context const& ); ---- or [,cpp] ---- void tag_invoke( ValueFromTag, dom::Value&, T ); ---- The overloads are checked for existence in that order and the first that matches will be selected. The `ctx` argument can be used either as a tag type to provide conversions for third‐party types, or to pass extra data to the conversion function. == Exception Safety Strong guarantee. == Template Parameters [cols=2] |=== | Name | Description | *T* | The type of the object to convert. | *Context* | The type of context passed to the conversion function. |=== == Parameters [cols=2] |=== | Name | Description | *t* | The object to convert. | *ctx* | Context passed to the conversion function. | *v* | link:#clang-mrdocs-dom-Value[`dom::Value`] out parameter. |=== == See Also link:#clang-mrdocs-dom-ValueFromTag[`dom::ValueFromTag`] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1895r0.pdf[] == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> link:#clang-mrdocs-dom-Function[Function] makeInvocable(F&& f); ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires std::invocable<F, Array const&> link:#clang-mrdocs-dom-Function[Function] makeVariadicInvocable(F&& f); ---- Return a new array using a custom implementation. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class... Args> requires std::derived_from<T, ArrayImpl> link:#clang-mrdocs-dom-Array[Array] newArray(Args...&&... args); ---- == Description Return a new array using a custom implementation. Return a new array using a custom implementation. == Return Value A new array using the specified implementation. == Template Parameters [cols=2] |=== | Name | Description | *T* | The type of the custom implementation. This must be derived from ArrayImpl. | *Args* | The types of the arguments. |=== == Parameters [cols=2] |=== | Name | Description | *args* | Arguments forwarded to the constructor of T. |=== Return a diagnostic string. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class... Args> requires std::derived_from<T, FunctionImpl> link:#clang-mrdocs-dom-Function[Function] newFunction(Args...&&... args); ---- == Description Return a new function using a custom implementation. == Return Value a diagnostic string. == Parameters [cols=2] |=== | Name | Description | *args* | The arguments to the function. |=== Return a new object using a custom implementation. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class... Args> requires std::derived_from<T, ObjectImpl> link:#clang-mrdocs-dom-Object[Object] newObject(Args...&&... args); ---- == Return Value A new object using the specified implementation. == Template Parameters [cols=2] |=== | Name | Description | *T* | The type of the custom implementation. This must be derived from ObjectImpl. | *Args* | The types of the arguments. |=== == Parameters [cols=2] |=== | Name | Description | *args* | Arguments forwarded to the constructor of T. |=== Return the first dom::Value that is not truthy, or the last one. == Synopses Declared in `<mrdocs/Dom/Value.hpp>` Return the first dom::Value that is not truthy, or the last one. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] link:#clang-mrdocs-dom-operator_and-0b[operator&&]( link:#clang-mrdocs-dom-Value[Value] const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs); ---- [.small]#link:#clang-mrdocs-dom-operator_and-0b[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-dom-operator_and-082[operator&&]( S const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_and-082[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-dom-operator_and-08b[operator&&]( link:#clang-mrdocs-dom-Value[Value] const& lhs, S const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_and-08b[_» more..._]# Return the first dom::Value that is not truthy, or the last one. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] operator&&( link:#clang-mrdocs-dom-Value[Value] const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs); ---- == Description This function is equivalent to the JavaScript `&&` operator. == Return Value the first dom::Value that is not truthy, or the last one. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator&&( S const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator&&( link:#clang-mrdocs-dom-Value[Value] const& lhs, S const& rhs) noexcept; ---- Addition operators == Synopses Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array-iterator[iterator] operator+( link:#clang-mrdocs-dom-Array-iterator[difference_type] n, link:#clang-mrdocs-dom-Array-iterator[iterator] it) noexcept; ---- [.small]#[_» more..._]# Concatenate two arrays. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[Array] link:#clang-mrdocs-dom-operator_plus-04[operator+]( link:#clang-mrdocs-dom-Array[Array] const& lhs, link:#clang-mrdocs-dom-Array[Array] const& rhs); ---- [.small]#link:#clang-mrdocs-dom-operator_plus-04[_» more..._]# Concatenate two strings. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-dom-operator_plus-069[operator+]( link:#clang-mrdocs-dom-String[String] const& lhs, link:#clang-mrdocs-dom-String[String] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_plus-069[_» more..._]# Add or concatenate two values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] link:#clang-mrdocs-dom-operator_plus-00[operator+]( link:#clang-mrdocs-dom-Value[Value] const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs); ---- [.small]#link:#clang-mrdocs-dom-operator_plus-00[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Array> S> auto link:#clang-mrdocs-dom-operator_plus-087[operator+]( link:#clang-mrdocs-dom-Array[Array] const& lhs, S const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_plus-087[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Array> S> auto link:#clang-mrdocs-dom-operator_plus-023[operator+]( S const& lhs, link:#clang-mrdocs-dom-Array[Array] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_plus-023[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] S> auto link:#clang-mrdocs-dom-operator_plus-0b8[operator+]( S const& lhs, link:#clang-mrdocs-dom-String[String] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_plus-0b8[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-dom-operator_plus-064[operator+]( S const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_plus-064[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] S> auto link:#clang-mrdocs-dom-operator_plus-026[operator+]( link:#clang-mrdocs-dom-String[String] const& lhs, S const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_plus-026[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-dom-operator_plus-065[operator+]( link:#clang-mrdocs-dom-Value[Value] const& lhs, S const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_plus-065[_» more..._]# == Return Value The concatenated string. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left‐hand side string. | *rhs* | The right‐hand side string. |=== Concatenate two arrays. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[Array] operator+( link:#clang-mrdocs-dom-Array[Array] const& lhs, link:#clang-mrdocs-dom-Array[Array] const& rhs); ---- == Return Value An array of values == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Concatenate two strings. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator+( link:#clang-mrdocs-dom-String[String] const& lhs, link:#clang-mrdocs-dom-String[String] const& rhs) noexcept; ---- == Return Value The concatenated string. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left‐hand side string. | *rhs* | The right‐hand side string. |=== Add or concatenate two values. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] operator+( link:#clang-mrdocs-dom-Value[Value] const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs); ---- == Return Value A variant container for any kind of Dom value. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Array> S> auto operator+( link:#clang-mrdocs-dom-Array[Array] const& lhs, S const& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Array> S> auto operator+( S const& lhs, link:#clang-mrdocs-dom-Array[Array] const& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] S> auto operator+( S const& lhs, link:#clang-mrdocs-dom-String[String] const& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator+( S const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] S> auto operator+( link:#clang-mrdocs-dom-String[String] const& lhs, S const& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator+( link:#clang-mrdocs-dom-Value[Value] const& lhs, S const& rhs) noexcept; ---- Return the first dom::Value that is truthy, or the last one. == Synopses Declared in `<mrdocs/Dom/Value.hpp>` Return the first dom::Value that is truthy, or the last one. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] link:#clang-mrdocs-dom-operator_or-03[operator||]( link:#clang-mrdocs-dom-Value[Value] const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs); ---- [.small]#link:#clang-mrdocs-dom-operator_or-03[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-dom-operator_or-04[operator||]( S const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_or-04[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-dom-operator_or-09[operator||]( link:#clang-mrdocs-dom-Value[Value] const& lhs, S const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_or-09[_» more..._]# Return the first dom::Value that is truthy, or the last one. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] operator||( link:#clang-mrdocs-dom-Value[Value] const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs); ---- == Description This function is equivalent to the JavaScript `||` operator. == Return Value the first dom::Value that is truthy, or the last one. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator||( S const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator||( link:#clang-mrdocs-dom-Value[Value] const& lhs, S const& rhs) noexcept; ---- Return a non‐empty string, or a null. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[Value] stringOrNull(std::string_view s); ---- == Return Value a non‐empty string, or a null. == Parameters [cols=2] |=== | Name | Description | *s* | The string to check. |=== `swap` overloads == Synopses Declared in `<mrdocs/Dom/Array.hpp>` Swap two arrays. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-dom-swap-04[swap]( link:#clang-mrdocs-dom-Array[Array]& lhs, link:#clang-mrdocs-dom-Array[Array]& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-swap-04[_» more..._]# Swap two objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-dom-swap-08[swap]( link:#clang-mrdocs-dom-Function[Function]& lhs, link:#clang-mrdocs-dom-Function[Function]& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-swap-08[_» more..._]# Swap two objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-dom-swap-00[swap]( link:#clang-mrdocs-dom-Object[Object]& lhs, link:#clang-mrdocs-dom-Object[Object]& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-swap-00[_» more..._]# Swap two strings. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void link:#clang-mrdocs-dom-swap-03[swap]( link:#clang-mrdocs-dom-String[String]& lhs, link:#clang-mrdocs-dom-String[String]& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-swap-03[_» more..._]# Swap two values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-dom-swap-09[swap]( link:#clang-mrdocs-dom-Value[Value]& v0, link:#clang-mrdocs-dom-Value[Value]& v1) noexcept; ---- [.small]#link:#clang-mrdocs-dom-swap-09[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *lhs* | The first object. | *rhs* | The second object. |=== Swap two arrays. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap( link:#clang-mrdocs-dom-Array[Array]& lhs, link:#clang-mrdocs-dom-Array[Array]& rhs) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *lhs* | An array of values | *rhs* | An array of values |=== Swap two objects. == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap( link:#clang-mrdocs-dom-Function[Function]& lhs, link:#clang-mrdocs-dom-Function[Function]& rhs) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *lhs* | The first object. | *rhs* | The second object. |=== Swap two objects. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap( link:#clang-mrdocs-dom-Object[Object]& lhs, link:#clang-mrdocs-dom-Object[Object]& rhs) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *lhs* | A container of key and value pairs. | *rhs* | A container of key and value pairs. |=== Swap two strings. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void swap( link:#clang-mrdocs-dom-String[String]& lhs, link:#clang-mrdocs-dom-String[String]& rhs) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *lhs* | The first string. | *rhs* | The second string. |=== Swap two values. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap( link:#clang-mrdocs-dom-Value[Value]& v0, link:#clang-mrdocs-dom-Value[Value]& v1) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *v0* | A variant container for any kind of Dom value. | *v1* | A variant container for any kind of Dom value. |=== `toString` overloads == Synopses Declared in `<mrdocs/Dom/Array.hpp>` Return a diagnostic string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-dom-toString-0e[toString](link:#clang-mrdocs-dom-Array[Array] const&); ---- [.small]#link:#clang-mrdocs-dom-toString-0e[_» more..._]# Return a diagnostic string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-dom-toString-0a[toString](link:#clang-mrdocs-dom-Object[Object] const&); ---- [.small]#link:#clang-mrdocs-dom-toString-0a[_» more..._]# Return value as a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-dom-toString-04[toString](link:#clang-mrdocs-dom-Value[Value] const& value); ---- [.small]#link:#clang-mrdocs-dom-toString-04[_» more..._]# Return a diagnostic string. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string toString(link:#clang-mrdocs-dom-Array[Array] const&); ---- == Return Value a diagnostic string. Return a diagnostic string. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string toString(link:#clang-mrdocs-dom-Object[Object] const&); ---- == Return Value a diagnostic string. Return value as a string. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string toString(link:#clang-mrdocs-dom-Value[Value] const& value); ---- == Return Value value as a string. == Parameters [cols=2] |=== | Name | Description | *value* | A variant container for any kind of Dom value. |=== Equality operators == Synopses Declared in `<mrdocs/Dom/Array.hpp>` Return the result of comparing two strings. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-dom-operator_eq-0c[operator==]( link:#clang-mrdocs-dom-String[String] const& lhs, link:#clang-mrdocs-dom-String[String] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_eq-0c[_» more..._]# Return the result of comparing two strings. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] StringLike> bool link:#clang-mrdocs-dom-operator_eq-0b[operator==]( link:#clang-mrdocs-dom-String[String] const& lhs, StringLike const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_eq-0b[_» more..._]# Compare two values for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-dom-operator_eq-06[operator==]( link:#clang-mrdocs-dom-Value[Value] const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_eq-06[_» more..._]# Compare two objects for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-dom-operator_eq-00[operator==]( link:#clang-mrdocs-dom-Object[Object] const& a, link:#clang-mrdocs-dom-Object[Object] const& b) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_eq-00[_» more..._]# Compare two arrays for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-dom-operator_eq-04[operator==]( link:#clang-mrdocs-dom-Array[Array] const& lhs, link:#clang-mrdocs-dom-Array[Array] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_eq-04[_» more..._]# Return the result of comparing two strings. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( link:#clang-mrdocs-dom-String[String] const& lhs, link:#clang-mrdocs-dom-String[String] const& rhs) noexcept; ---- == Return Value the result of comparing two strings. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Return the result of comparing two strings. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] StringLike> bool operator==( link:#clang-mrdocs-dom-String[String] const& lhs, StringLike const& rhs) noexcept; ---- == Return Value the result of comparing two strings. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Compare two values for equality. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( link:#clang-mrdocs-dom-Value[Value] const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- == Description This operator uses strict equality, meaning that the types must match exactly, and for objects and arrays the children must match exactly. The `==` operator behaves differently for objects compared to primitive data types like numbers and strings. When comparing objects using `==`, it checks for reference equality, not structural equality. This means that two objects are considered equal with `===` only if they reference the exact same object in memory. [NOTE] In JavaScript, this is equivalent to the `===` operator, which does not perform type conversions. == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Compare two objects for equality. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( link:#clang-mrdocs-dom-Object[Object] const& a, link:#clang-mrdocs-dom-Object[Object] const& b) noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *a* | The left operand | *b* | The right operand |=== Compare two arrays for equality. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( link:#clang-mrdocs-dom-Array[Array] const& lhs, link:#clang-mrdocs-dom-Array[Array] const& rhs) noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Return the result of comparing two strings. == Synopses Declared in `<mrdocs/Dom/String.hpp>` Return the result of comparing two strings. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-dom-operator_not_eq-05[operator!=]( link:#clang-mrdocs-dom-String[String] const& lhs, link:#clang-mrdocs-dom-String[String] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_not_eq-05[_» more..._]# Return the result of comparing two strings. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] StringLike> bool link:#clang-mrdocs-dom-operator_not_eq-0d[operator!=]( link:#clang-mrdocs-dom-String[String] const& lhs, StringLike const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_not_eq-0d[_» more..._]# Return the result of comparing two strings. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator!=( link:#clang-mrdocs-dom-String[String] const& lhs, link:#clang-mrdocs-dom-String[String] const& rhs) noexcept; ---- == Return Value the result of comparing two strings. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Return the result of comparing two strings. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] StringLike> bool operator!=( link:#clang-mrdocs-dom-String[String] const& lhs, StringLike const& rhs) noexcept; ---- == Return Value the result of comparing two strings. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Dom/Array.hpp>` Return the result of comparing two strings. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-dom-operator_3way-05[operator<=>]( link:#clang-mrdocs-dom-String[String] const& lhs, link:#clang-mrdocs-dom-String[String] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_3way-05[_» more..._]# Return the result of comparing two strings. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] StringLike> auto link:#clang-mrdocs-dom-operator_3way-0f4[operator<=>]( link:#clang-mrdocs-dom-String[String] const& lhs, StringLike const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_3way-0f4[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-dom-operator_3way-00[operator<=>]( link:#clang-mrdocs-dom-Value[Value] const& lhs, S const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_3way-00[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-dom-operator_3way-0a[operator<=>]( S const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_3way-0a[_» more..._]# Compare two values for inequality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-dom-operator_3way-09[operator<=>]( link:#clang-mrdocs-dom-Value[Value] const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_3way-09[_» more..._]# Compare two objects for precedence. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-dom-operator_3way-02[operator<=>]( link:#clang-mrdocs-dom-Object[Object] const& a, link:#clang-mrdocs-dom-Object[Object] const& b) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_3way-02[_» more..._]# Compare two arrays for precedence. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-dom-operator_3way-0ff[operator<=>]( link:#clang-mrdocs-dom-Array[Array] const& lhs, link:#clang-mrdocs-dom-Array[Array] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-dom-operator_3way-0ff[_» more..._]# Return the result of comparing two strings. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>( link:#clang-mrdocs-dom-String[String] const& lhs, link:#clang-mrdocs-dom-String[String] const& rhs) noexcept; ---- == Return Value the result of comparing two strings. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Return the result of comparing two strings. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-dom-StringLikeTy[StringLikeTy] StringLike> auto operator<=>( link:#clang-mrdocs-dom-String[String] const& lhs, StringLike const& rhs) noexcept; ---- == Return Value the result of comparing two strings. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator<=>( link:#clang-mrdocs-dom-Value[Value] const& lhs, S const& rhs) noexcept; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator<=>( S const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Compare two values for inequality. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>( link:#clang-mrdocs-dom-Value[Value] const& lhs, link:#clang-mrdocs-dom-Value[Value] const& rhs) noexcept; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Compare two objects for precedence. == Synopsis Declared in `<mrdocs/Dom/Object.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>( link:#clang-mrdocs-dom-Object[Object] const& a, link:#clang-mrdocs-dom-Object[Object] const& b) noexcept; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *a* | The left operand | *b* | The right operand |=== Compare two arrays for precedence. == Synopsis Declared in `<mrdocs/Dom/Array.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>( link:#clang-mrdocs-dom-Array[Array] const& lhs, link:#clang-mrdocs-dom-Array[Array] const& rhs) noexcept; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Determine if `T` can be converted to link:#clang-mrdocs-dom-Value[`dom::Value`]. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class Context> concept HasLazyObjectMap = HasLazyObjectMapWithContext<T, Context> || HasLazyObjectMapWithoutContext<T>; ---- == Description If `T` can be converted to link:#clang-mrdocs-dom-Value[`dom::Value`] via a call to link:#clang-mrdocs-dom-ValueFrom-0cc[`dom::ValueFrom`], the static data member `value` is defined as `true`. Otherwise, `value` is defined as `false`. Concept to determine if a type can be mapped to a link:#clang-mrdocs-dom-LazyObjectImpl[`dom::LazyObjectImpl`] with a user‐provided conversion. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class Context> concept HasLazyObjectMapWithContext = requires( detail::ArchetypalIO& io, T const& t, Context const& ctx) { { tag_invoke(LazyObjectMapTag{}, io, t, ctx) } ‐> std::same_as<void>; }; ---- == Description This concept determines if the user‐provided conversion is defined as: [,cpp] ---- template void tag_invoke( LazyObjectMapTag, IO&, T, Context const& ); ---- Concept to determine if a type can be mapped to a link:#clang-mrdocs-dom-LazyObjectImpl[`dom::LazyObjectImpl`] with a user‐provided conversion. == Synopsis Declared in `<mrdocs/Dom/LazyObject.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> concept HasLazyObjectMapWithoutContext = requires( detail::ArchetypalIO& io, T const& t) { { tag_invoke(LazyObjectMapTag{}, io, t) } ‐> std::same_as<void>; }; ---- == Description This concept determines if the user‐provided conversion is defined as: [,cpp] ---- template void tag_invoke( LazyObjectMapTag, IO&, T& ); ---- This customization can be defined by any type that needs to be converted to/from a lazy link:#clang-mrdocs-dom-Object[`dom::Object`]. For example: [,cpp] ---- template void tag_invoke( LazyObjectMapTag, IO& io, MyStruct const& s) { io.map("name", s.name); io.map("size", s.size); io.map("age", s.age); } ---- Determine if `T` can be converted to link:#clang-mrdocs-dom-Value[`dom::Value`] without a context. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> concept HasStandaloneValueFrom = HasValueFromWithoutContext<T> || std::constructible_from<Value, T>; ---- == Description This concept determines if there is a user‐provided conversion to link:#clang-mrdocs-dom-Value[`dom::Value`] that does not require a context or if link:#clang-mrdocs-dom-Value[`dom::Value`] has a constructor that can be used to convert `T` to a link:#clang-mrdocs-dom-Value[`dom::Value`]. Determine if `T` can be converted to link:#clang-mrdocs-dom-Value[`dom::Value`]. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class Context> concept HasValueFrom = HasValueFromWithContext<T, Context> || HasValueFromWithoutContext<T> || std::constructible_from<Value, T>; ---- == Description If `T` can be converted to link:#clang-mrdocs-dom-Value[`dom::Value`] via a call to link:#clang-mrdocs-dom-ValueFrom-0cc[`dom::ValueFrom`], the static data member `value` is defined as `true`. Otherwise, `value` is defined as `false`. == See Also link:#clang-mrdocs-dom-ValueFrom-0cc[`dom::ValueFrom`] Concept to determine if a type can be converted to a link:#clang-mrdocs-dom-Value[`dom::Value`] with a user‐provided conversion. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class Context> concept HasValueFromWithContext = requires( Value& v, T const& t, Context const& ctx) { tag_invoke(ValueFromTag{}, v, t, ctx); }; ---- == Description This concept determines if the user‐provided conversion is defined as: [,cpp] ---- void tag_invoke( ValueFromTag, dom::Value&, T, Context const& ); ---- Concept to determine if a type can be converted to a link:#clang-mrdocs-dom-Value[`dom::Value`] with a user‐provided conversion. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> concept HasValueFromWithoutContext = requires( Value& v, T const& t) { tag_invoke(ValueFromTag{}, v, t); }; ---- == Description This concept determines if the user‐provided conversion is defined as: [,cpp] ---- void tag_invoke( ValueFromTag, dom::Value&, T ); ---- Satisfied if StringTy is convertible to String but not a String. == Synopsis Declared in `<mrdocs/Dom/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class StringTy> concept StringLikeTy = ! std::is_same_v<StringTy, String> && std::convertible_to<StringTy, std::string_view>; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> concept function_traits_convertible_to_value = has_function_traits<F> && has_function_traits_for_default_function_impl<F>; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename F> concept has_function_args_for_default_function_impl = (std::tuple_size_v<typename function_traits<F>::args_type> == 0 || []<std::size_t... I>(std::index_sequence<I...>) { return (std::convertible_to< std::tuple_element_t< I, typename function_traits<F>::args_type>, Value> && ...); }(std::make_index_sequence<std::tuple_size_v<typename function_traits<F>::args_type>>())); ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename F> concept has_function_traits = requires { typename function_traits<F>::return_type; typename function_traits<F>::args_type; }; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename F> concept has_function_traits_for_default_function_impl = has_invoke_result_for_default_function_impl<F> && has_function_args_for_default_function_impl<F>; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename F> concept has_invoke_expected_result_convertible_to_dom_value = detail::isExpected<typename function_traits<F>::return_type> && (std::convertible_to<typename function_traits<F>::return_type::value_type, Value> || std::same_as<typename function_traits<F>::return_type::value_type, void>); ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename F> concept has_invoke_result_convertible_to_dom_value = std::convertible_to<typename function_traits<F>::return_type, Value> || std::same_as<typename function_traits<F>::return_type, void>; ---- == Synopsis Declared in `<mrdocs/Dom/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename F> concept has_invoke_result_for_default_function_impl = has_invoke_result_convertible_to_dom_value<F> || has_invoke_expected_result_convertible_to_dom_value<F>; ---- == Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-files-FileType[`FileType`] | The type of a file. |=== == Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-files-appendPath-0b[`appendPath`] | | link:#clang-mrdocs-files-createDirectory[`createDirectory`] | Create a directory. | link:#clang-mrdocs-files-exists[`exists`] | Determine if a path exists | link:#clang-mrdocs-files-getFileName[`getFileName`] | Return the filename part of the path. | link:#clang-mrdocs-files-getFileText[`getFileText`] | Return the contents of a file as a string. | link:#clang-mrdocs-files-getFileType[`getFileType`] | Return the file type or an error | link:#clang-mrdocs-files-getParentDir-00[`getParentDir`] | Return the parent directory. | link:#clang-mrdocs-files-getSourceFilename[`getSourceFilename`] | Return the relevant suffix of a source file path. | link:#clang-mrdocs-files-isAbsolute[`isAbsolute`] | Return true if pathName is absolute. | link:#clang-mrdocs-files-isDirectory[`isDirectory`] | Determine if a path is a directory. | link:#clang-mrdocs-files-isDirsy[`isDirsy`] | Return true if pathName ends in a separator. | link:#clang-mrdocs-files-isLexicalDirectory[`isLexicalDirectory`] | Determine lexically if a path is a directory. | link:#clang-mrdocs-files-isPosixStyle[`isPosixStyle`] | Check if the path is posix style. | link:#clang-mrdocs-files-makeAbsolute-0c[`makeAbsolute`] | Return an absolute path from a possibly relative path. | link:#clang-mrdocs-files-makeDirsy[`makeDirsy`] | Append a trailing native separator if not already present. | link:#clang-mrdocs-files-makePosixStyle[`makePosixStyle`] | Convert all backward slashes to forward slashes. | link:#clang-mrdocs-files-normalizeDir[`normalizeDir`] | Return a normalized directory. | link:#clang-mrdocs-files-normalizePath[`normalizePath`] | Return a normalized path. | link:#clang-mrdocs-files-requireAbsolute[`requireAbsolute`] | Return an error if pathName is not absolute. | link:#clang-mrdocs-files-requireDirectory[`requireDirectory`] | Return an error if the path is not a directory. | link:#clang-mrdocs-files-startsWith[`startsWith`] | Checks if the given path starts with the specified prefix. | link:#clang-mrdocs-files-withExtension[`withExtension`] | Return the filename with a new or different extension. |=== The type of a file. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class FileType : int; ---- == Members [cols=2] |=== | Name | Description |`not_found` |The file does not exist |`regular` |The path represents a regular file |`directory` |The file is a directory |`other` |The file is something else |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-files-getFileType[`getFileType`] | Return the file type or an error |=== == Synopses Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-files-appendPath-00[appendPath]( std::string_view basePath, std::string_view name); ---- [.small]#link:#clang-mrdocs-files-appendPath-00[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-files-appendPath-08[appendPath]( std::string_view basePath, std::string_view name1, std::string_view name2); ---- [.small]#link:#clang-mrdocs-files-appendPath-08[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-files-appendPath-02[appendPath]( std::string_view basePath, std::string_view name1, std::string_view name2, std::string_view name3); ---- [.small]#link:#clang-mrdocs-files-appendPath-02[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-files-appendPath-03[appendPath]( std::string_view basePath, std::string_view name1, std::string_view name2, std::string_view name3, std::string_view name4); ---- [.small]#link:#clang-mrdocs-files-appendPath-03[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string appendPath( std::string_view basePath, std::string_view name); ---- == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string appendPath( std::string_view basePath, std::string_view name1, std::string_view name2); ---- == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string appendPath( std::string_view basePath, std::string_view name1, std::string_view name2, std::string_view name3); ---- == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string appendPath( std::string_view basePath, std::string_view name1, std::string_view name2, std::string_view name3, std::string_view name4); ---- Create a directory. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] createDirectory(std::string_view pathName); ---- == Description Any missing parent directories will also be created. == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to create. |=== Determine if a path exists == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool exists(std::string_view pathName); ---- == Return Value true if the path exists, false otherwise. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path |=== Return the filename part of the path. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view getFileName(std::string_view pathName); ---- == Return Value The filename part of the path, or the empty string if there is none. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. |=== Return the contents of a file as a string. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::string>] getFileText(std::string_view pathName); ---- == Return Value The contents of the file, or an error if any occurred. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the file. |=== Return the file type or an error == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<FileType>] getFileType(std::string_view pathName); ---- == Return Value the file type or an error == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the file. |=== Return the parent directory. == Synopses Declared in `<mrdocs/Support/Path.hpp>` Return the parent directory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-files-getParentDir-07[getParentDir](std::string_view pathName); ---- [.small]#link:#clang-mrdocs-files-getParentDir-07[_» more..._]# Return the parent directory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-files-getParentDir-0b[getParentDir]( std::string_view pathName, unsigned int levels); ---- [.small]#link:#clang-mrdocs-files-getParentDir-0b[_» more..._]# == Return Value The parent directory, or the empty string if there is none. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. | *levels* | The number of levels to go up. If this is zero, the original path is returned. If this is greater than the number of levels in the path, the empty string is returned. |=== Return the parent directory. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string getParentDir(std::string_view pathName); ---- == Description If the parent directory is defined, the returned path will always have a trailing separator. == Return Value The parent directory, or the empty string if there is none. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. |=== Return the parent directory. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string getParentDir( std::string_view pathName, unsigned int levels); ---- == Description If the parent directory is defined, the returned path will always have a trailing separator. == Return Value The parent directory, or the empty string if there is none. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. | *levels* | The number of levels to go up. If this is zero, the original path is returned. If this is greater than the number of levels in the path, the empty string is returned. |=== Return the relevant suffix of a source file path. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view getSourceFilename(std::string_view pathName); ---- == Return Value The suffix, including the leading dot, or the empty string if there is no suffix. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the file. |=== Return true if pathName is absolute. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isAbsolute(std::string_view pathName) noexcept; ---- == Return Value true if the path is absolute, false otherwise. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. |=== Determine if a path is a directory. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isDirectory(std::string_view pathName); ---- == Return Value true if the path exists and is a directory, false otherwise. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path |=== Return true if pathName ends in a separator. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isDirsy(std::string_view pathName) noexcept; ---- == Return Value true if the path ends in a separator, false otherwise. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. |=== Determine lexically if a path is a directory. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isLexicalDirectory(std::string_view pathName); ---- == Description This function determines if a path is a directory. If the path does not exist, the function determines lexically if the path represents a directory. In this case, the function returns true if the last path segment contains a period, otherwise false. == Return Value true if the path exists and is a directory, or if the path does not exist and the last path segment does not contain a period. false otherwise. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path |=== Check if the path is posix style. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isPosixStyle(std::string_view pathName); ---- == Return Value true if the path uses only forward slashes as path separators, false otherwise. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. |=== Return an absolute path from a possibly relative path. == Synopses Declared in `<mrdocs/Support/Path.hpp>` Return an absolute path from a possibly relative path. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::string>] link:#clang-mrdocs-files-makeAbsolute-08[makeAbsolute](std::string_view pathName); ---- [.small]#link:#clang-mrdocs-files-makeAbsolute-08[_» more..._]# Return an absolute path from a possibly relative path. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-files-makeAbsolute-02[makeAbsolute]( std::string_view pathName, std::string_view workingDir); ---- [.small]#link:#clang-mrdocs-files-makeAbsolute-02[_» more..._]# == Return Value * The absolute path, or an error if any occurred. * The absolute path, or an error if any occurred. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. | *workingDir* | The working directory to resolve relative paths against. |=== Return an absolute path from a possibly relative path. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::string>] makeAbsolute(std::string_view pathName); ---- == Description Relative paths are resolved against the current working directory of the process. == Return Value The absolute path, or an error if any occurred. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. |=== Return an absolute path from a possibly relative path. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string makeAbsolute( std::string_view pathName, std::string_view workingDir); ---- == Return Value The absolute path, or an error if any occurred. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. | *workingDir* | The working directory to resolve relative paths against. |=== Append a trailing native separator if not already present. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string makeDirsy(std::string_view pathName); ---- == Return Value A copy of the path with a trailing separator if not already present. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. |=== Convert all backward slashes to forward slashes. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string makePosixStyle(std::string_view pathName); ---- == Return Value A copy of the path with all backslashes replaced with forward slashes. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. |=== Return a normalized directory. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string normalizeDir(std::string_view pathName); ---- == Description This function returns a new directory path based on applying the changes defined by link:#clang-mrdocs-files-normalizePath[`normalizePath`] and link:#clang-mrdocs-files-makeDirsy[`makeDirsy`]. == Return Value The normalized path. == Parameters [cols=2] |=== | Name | Description | *pathName* | The relative or absolute path. |=== Return a normalized path. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string normalizePath(std::string_view pathName); ---- == Description This function returns a new path based on applying the following changes to the passed path: * "." and ".." are resolved * Separators made uniform * Separators are replaced with the native separator == Return Value The normalized path. == Parameters [cols=2] |=== | Name | Description | *pathName* | The relative or absolute path. |=== Return an error if pathName is not absolute. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] requireAbsolute(std::string_view pathName); ---- == Return Value An error if the path is not absolute. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path to the directory or file. |=== Return an error if the path is not a directory. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] requireDirectory(std::string_view pathName); ---- == Return Value An error if the path does not exist or is not a directory. == Parameters [cols=2] |=== | Name | Description | *pathName* | The absolute or relative path |=== Checks if the given path starts with the specified prefix. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool startsWith( std::string_view pathName, std::string_view prefix); ---- == Description This function compares the beginning of the `pathName` with the `prefix`. It returns true if `pathName` starts with `prefix`. The comparison is case‐sensitive. Unlike a direct string comparison, this function also accepts differences in the slashes used to separate paths. Therefore, it returns true even when the slashes used in `pathName` and `prefix` are not the same. The function accepts both forward slashes ("/") and backslashes (""). == Return Value A boolean value. Returns true if `pathName` starts with `prefix`, false otherwise. == Parameters [cols=2] |=== | Name | Description | *pathName* | A string view representing the path to be checked. | *prefix* | A string view representing the prefix to be checked against the path. |=== Return the filename with a new or different extension. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string withExtension( std::string_view fileName, std::string_view ext); ---- == Return Value the filename with a new or different extension. == Parameters [cols=2] |=== | Name | Description | *fileName* | The absolute or relative path to the directory or file. | *ext* | The extension to use, without a leading dot. If this is empty and the path contains an extension, then the extension is removed. |=== == Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-helpers-and_fn[`and_fn`] | "and" helper function | link:#clang-mrdocs-helpers-detag_fn[`detag_fn`] | "detag" helper function | link:#clang-mrdocs-helpers-eq_fn[`eq_fn`] | "eq" helper function | link:#clang-mrdocs-helpers-increment_fn[`increment_fn`] | "increment" helper function | link:#clang-mrdocs-helpers-ne_fn[`ne_fn`] | "ne" helper function | link:#clang-mrdocs-helpers-not_fn[`not_fn`] | "not" helper function | link:#clang-mrdocs-helpers-or_fn[`or_fn`] | "or" helper function | link:#clang-mrdocs-helpers-registerAntoraHelpers[`registerAntoraHelpers`] | Register all the Antora helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerBuiltinHelpers[`registerBuiltinHelpers`] | Register all the built‐in helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerConstructorHelpers[`registerConstructorHelpers`] | Register contructor helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerContainerHelpers[`registerContainerHelpers`] | Register helpers to manipulate composite data types | link:#clang-mrdocs-helpers-registerLogicalHelpers[`registerLogicalHelpers`] | Register logical helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerMathHelpers[`registerMathHelpers`] | Register math helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerStringHelpers[`registerStringHelpers`] | Register string helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerTypeHelpers[`registerTypeHelpers`] | Register type helpers into a Handlebars instance | link:#clang-mrdocs-helpers-relativize_fn[`relativize_fn`] | "relativize" helper function | link:#clang-mrdocs-helpers-select_fn[`select_fn`] | "select" helper function | link:#clang-mrdocs-helpers-year_fn[`year_fn`] | "year" helper function |=== "and" helper function == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool and_fn(link:#clang-mrdocs-dom-Array[dom::Array] const& args); ---- == Description The "and" helper returns true if all of the values are truthy. == Return Value True if all of the values are truthy, false otherwise. == Parameters [cols=2] |=== | Name | Description | *args* | The values to test |=== "detag" helper function == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] detag_fn(link:#clang-mrdocs-dom-Value[dom::Value] html); ---- == Description The "detag" helper applies the regex expression "<[ˆ>]+>" to the input to remove all HTML tags. == Return Value A variant container for any kind of Dom value. == Parameters [cols=2] |=== | Name | Description | *html* | A variant container for any kind of Dom value. |=== "eq" helper function == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool eq_fn(link:#clang-mrdocs-dom-Array[dom::Array] const& args); ---- == Description The "eq" helper returns true if all of the values are equal. == Return Value True if all of the values are equal, false otherwise. == Parameters [cols=2] |=== | Name | Description | *args* | The values to compare |=== "increment" helper function == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] increment_fn(link:#clang-mrdocs-dom-Value[dom::Value] const& value); ---- == Description The "increment" helper adds 1 to the value if it's an integer and converts booleans to `true`. Other values are returned as‐is. == Return Value A variant container for any kind of Dom value. == Parameters [cols=2] |=== | Name | Description | *value* | A variant container for any kind of Dom value. |=== "ne" helper function == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool ne_fn(link:#clang-mrdocs-dom-Array[dom::Array] const& args); ---- == Description The "ne" helper returns true if any of the values are not equal. == Return Value True if any of the values are not equal, false otherwise. == Parameters [cols=2] |=== | Name | Description | *args* | The values to compare |=== "not" helper function == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool not_fn(link:#clang-mrdocs-dom-Array[dom::Array] const& arg); ---- == Description The "not" helper returns true if not all of the values are truthy. == Return Value True if not all of the values are truthy, false otherwise. == Parameters [cols=2] |=== | Name | Description | *arg* | An array of values |=== "or" helper function == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] or_fn(link:#clang-mrdocs-dom-Array[dom::Array] const& args); ---- == Description The "or" helper returns true if any of the values are truthy. == Return Value A variant container for any kind of Dom value. == Parameters [cols=2] |=== | Name | Description | *args* | An array of values |=== Register all the Antora helpers into a Handlebars instance == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerAntoraHelpers(link:#clang-mrdocs-Handlebars[Handlebars]& hbs); ---- == Description This function registers all the helpers that are part of the default Antora UI. Individual Antora helpers can also be registered with the public *_fn* functions in this namespace. Since the Antora helpers are not mandatory and include many functions not applicable to all applications, this allows the user to register only some of the Antora helpers. == Parameters [cols=2] |=== | Name | Description | *hbs* | The Handlebars instance to register the helpers into |=== == See Also https://gitlab.com/antora/antora‐ui‐default/‐/tree/master/src/helpers Register all the built‐in helpers into a Handlebars instance == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerBuiltinHelpers(link:#clang-mrdocs-Handlebars[Handlebars]& hbs); ---- == Description Individual built‐in helpers can also be registered with the public *_fn* functions in this namespace. This allows the user to override only some of the built‐in helpers. In particular, this is important for mandatory helpers, such as `blockHelperMissing` and `helperMissing`. == Parameters [cols=2] |=== | Name | Description | *hbs* | The Handlebars instance to register the helpers into |=== == See Also https://github.com/handlebars‐lang/handlebars.js/tree/master/lib/handlebars/helpers https://handlebarsjs.com/guide/builtin‐helpers.html Register contructor helpers into a Handlebars instance == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerConstructorHelpers(link:#clang-mrdocs-Handlebars[Handlebars]& hbs); ---- == Description This function registers a number of common helpers that allows the user to create objects of specific types directly from literals in the template. == Parameters [cols=2] |=== | Name | Description | *hbs* | The Handlebars instance to register the helpers into |=== Register helpers to manipulate composite data types == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerContainerHelpers(link:#clang-mrdocs-Handlebars[Handlebars]& hbs); ---- == Description This function registers a number of common helpers that operate on Objects and Arrays. Object and Array helpers are particularly useful because most applications will need to manipulate Objects and Arrays to extract information from them, such as object keys or specific Array items known ahead of time. The helper names are inspired by the default functions provided in multiple programming languages for dictionaries, objects, and arrays, such as Python and JavaScript, for their default types. The individual helpers are defined as an implementation detail and cannot be registered individually. == Parameters [cols=2] |=== | Name | Description | *hbs* | The Handlebars instance to register the helpers into |=== Register logical helpers into a Handlebars instance == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerLogicalHelpers(link:#clang-mrdocs-Handlebars[Handlebars]& hbs); ---- == Description This function registers a number of common helpers that perform logical operations. == Parameters [cols=2] |=== | Name | Description | *hbs* | The Handlebars instance to register the helpers into |=== Register math helpers into a Handlebars instance == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerMathHelpers(link:#clang-mrdocs-Handlebars[Handlebars]& hbs); ---- == Description This function registers a number of common helpers that perform mathemathical operations. == Parameters [cols=2] |=== | Name | Description | *hbs* | The Handlebars instance to register the helpers into |=== Register string helpers into a Handlebars instance == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerStringHelpers(link:#clang-mrdocs-Handlebars[Handlebars]& hbs); ---- == Description This function registers a number of common helpers that operate on strings. String helpers are particularly useful because most applications will need to manipulate strings for presentation purposes. All helpers can be used as either block helpers or inline helpers. When used as a block helper, the block content is used as the first argument to the helper function. When used as an inline helper, the first argument is the value of the helper. The helper names are inspired by the default string functions provided in multiple programming languages, such as Python and JavaScript, for their default string types. The individual helpers are defined as an implementation detail and cannot be registered individually. == Parameters [cols=2] |=== | Name | Description | *hbs* | The Handlebars instance to register the helpers into |=== Register type helpers into a Handlebars instance == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerTypeHelpers(link:#clang-mrdocs-Handlebars[Handlebars]& hbs); ---- == Description This function registers a number of common helpers that operate on types, such as identity, type checking, and type conversion. == Parameters [cols=2] |=== | Name | Description | *hbs* | The Handlebars instance to register the helpers into |=== "relativize" helper function == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] relativize_fn( link:#clang-mrdocs-dom-Value[dom::Value] to, link:#clang-mrdocs-dom-Value[dom::Value] from, link:#clang-mrdocs-dom-Value[dom::Value] context); ---- == Description The "relativize" helper makes the first path relative to the second path. == Return Value A variant container for any kind of Dom value. == Parameters [cols=2] |=== | Name | Description | *to* | A variant container for any kind of Dom value. | *from* | A variant container for any kind of Dom value. | *context* | A variant container for any kind of Dom value. |=== "select" helper function == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] select_fn( link:#clang-mrdocs-dom-Value[dom::Value] const& condition, link:#clang-mrdocs-dom-Value[dom::Value] const& result_true, link:#clang-mrdocs-dom-Value[dom::Value] const& result_false); ---- == Description The "select" helper returns the second argument if the first argument is truthy, and the third argument otherwise. == Return Value A variant container for any kind of Dom value. == Parameters [cols=2] |=== | Name | Description | *condition* | A variant container for any kind of Dom value. | *result_true* | A variant container for any kind of Dom value. | *result_false* | A variant container for any kind of Dom value. |=== "year" helper function == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int year_fn(); ---- == Description The "year" helper returns the current year as an integer. == Return Value The current year as an integer. == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-js-Access[`Access`] | | link:#clang-mrdocs-js-Array[`Array`] | | link:#clang-mrdocs-js-Boolean[`Boolean`] | | link:#clang-mrdocs-js-Context[`Context`] | An instance of a JavaScript interpreter. | link:#clang-mrdocs-js-Object[`Object`] | | link:#clang-mrdocs-js-Prop[`Prop`] | | link:#clang-mrdocs-js-Scope[`Scope`] | A JavaScript scope | link:#clang-mrdocs-js-String[`String`] | | link:#clang-mrdocs-js-Value[`Value`] | An ECMAScript value. |=== == Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-js-Type[`Type`] | Types of values. |=== == Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-js-operator_and-06[`operator&&`] | Return the first Value that is not truthy, or the last one. | link:#clang-mrdocs-js-operator_or-0b[`operator||`] | Return the first Value that is truthy, or the last one. | link:#clang-mrdocs-js-registerHelper[`registerHelper`] | Register a JavaScript helper function | link:#clang-mrdocs-js-swap[`swap`] | Swap two values. | link:#clang-mrdocs-js-toString[`toString`] | Return value as a string. | link:#clang-mrdocs-js-operator_eq-07[`operator==`] | Compare two values for equality. | link:#clang-mrdocs-js-operator_not_eq-01[`operator!=`] | Inequality operators | link:#clang-mrdocs-js-operator_3way[`operator<=>`] | Compare two values for inequality. |=== == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Access; ---- == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Array; ---- == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Boolean; ---- An instance of a JavaScript interpreter. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Context; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-js-Context-2constructor-06[`Context`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-js-Context-2destructor[`~Context`] [.small]#[destructor]# | Destructor. | link:#clang-mrdocs-js-Context-operator_assign[`operator=`] [.small]#[deleted]# | Copy assignment. |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-js-Access[clang::mrdocs::js::Access]` | |=== == Description This class represents a JavaScript interpreter context under which we can create link:#clang-mrdocs-js-Scope[`Scope`] objects to define variables and execute scripts. A context represents a JavaScript heap where variables can be allocated and will be later garbage collected. Each context is associated with a single heap allocated with default memory management. Once the context is created, a link:#clang-mrdocs-js-Scope[`Scope`] in this context can be created to define variables and execute scripts. == See Also Scope Constructor. == Synopses Declared in `<mrdocs/Support/JavaScript.hpp>` Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Context-2constructor-04[Context](); ---- [.small]#link:#clang-mrdocs-js-Context-2constructor-04[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Context-2constructor-09[Context](link:#clang-mrdocs-js-Context[Context] const& other) noexcept; ---- [.small]#link:#clang-mrdocs-js-Context-2constructor-09[_» more..._]# Constructor. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Context(); ---- == Description Create a javascript execution context associated with its own garbage‐collected heap. Constructor. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Context(link:#clang-mrdocs-js-Context[Context] const& other) noexcept; ---- == Description Create a javascript execution context associated with the heap of another context. Both contexts will share the same garbage‐collected heap, which is destroyed when the last context is destroyed. While they share the heap, their scripts can include references to the same variables. There are multi‐threading restrictions, however: only one native thread can execute any code within a single heap at any time. == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Destructor. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~Context(); ---- Copy assignment. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Context[Context]& operator=(link:#clang-mrdocs-js-Context[Context] const& other) = delete; ---- == Description Create a javascript execution context associated with the heap of another context. Both contexts will share the same garbage‐collected heap, which is destroyed when the last context is destroyed. While they share the heap, their scripts can include references to the same variables. There are multi‐threading restrictions, however: only one native thread can execute any code within a single heap at any time. == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Object; ---- == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Prop; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-js-Prop-2constructor-06[`Prop`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-js-Prop-isIndex[`isIndex`] | |=== Constructors == Synopses Declared in `<mrdocs/Support/JavaScript.hpp>` Construct from `string_view` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-js-Prop-2constructor-03[Prop](std::string_view name) noexcept; ---- [.small]#link:#clang-mrdocs-js-Prop-2constructor-03[_» more..._]# Construct from `unsigned int` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-js-Prop-2constructor-01[Prop](unsigned int index) noexcept; ---- [.small]#link:#clang-mrdocs-js-Prop-2constructor-01[_» more..._]# Construct from `string_view` == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Prop(std::string_view name) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *name* | The object to construct from |=== Construct from `unsigned int` == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Prop(unsigned int index) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *index* | The value to construct from |=== == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isIndex() const noexcept; ---- A JavaScript scope == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Scope; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-js-Scope-2constructor[`Scope`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-js-Scope-2destructor[`~Scope`] [.small]#[destructor]# | Destructor. | link:#clang-mrdocs-js-Scope-compile_function[`compile_function`] | Compile a script and push results to stack. | link:#clang-mrdocs-js-Scope-compile_script[`compile_script`] | Compile a script and push results to stack. | link:#clang-mrdocs-js-Scope-eval[`eval`] | Compile and run a expression. | link:#clang-mrdocs-js-Scope-getGlobal[`getGlobal`] | Return a global object if it exists. | link:#clang-mrdocs-js-Scope-getGlobalObject[`getGlobalObject`] | Return the global object. | link:#clang-mrdocs-js-Scope-pushArray[`pushArray`] | Push a new array to the stack | link:#clang-mrdocs-js-Scope-pushBoolean[`pushBoolean`] | Push a boolean to the stack | link:#clang-mrdocs-js-Scope-pushDouble[`pushDouble`] | Push a double to the stack | link:#clang-mrdocs-js-Scope-pushInteger[`pushInteger`] | Push an integer to the stack | link:#clang-mrdocs-js-Scope-pushObject[`pushObject`] | Push a new object to the stack | link:#clang-mrdocs-js-Scope-pushString[`pushString`] | Push a string to the stack | link:#clang-mrdocs-js-Scope-script[`script`] | Compile and run a script. | link:#clang-mrdocs-js-Scope-setGlobal[`setGlobal`] | Set a global object. |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-js-Access[clang::mrdocs::js::Access]` | |=== == Description This class represents a JavaScript scope under which we can define variables and execute scripts. Each scope is a section of the context heap in the JavaScript interpreter. A javascript variable is defined by creating a link:#clang-mrdocs-js-Value[`Value`] that is associated with this Scope, i.e., subsection of the context heap. When a scope is destroyed, the heap section is popped and all variables defined in that scope are invalidated. For this reason, two scopes of the same context heap cannot be manipulated at the same time. Constructor. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Scope(link:#clang-mrdocs-js-Context[Context] const& ctx) noexcept; ---- == Description Construct a scope for the given context. Variables defined in this scope will be allocated on top of the specified context heap. When the Scope is destroyed, the variables defined in this scope will be popped from the heap. == Parameters [cols=2] |=== | Name | Description | *ctx* | The context to use. |=== Destructor. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~Scope(); ---- == Description All variables defined in this scope are popped from the internal context heap. There should be no link:#clang-mrdocs-js-Value[`Value`] objects associated with this scope when it is destroyed. Compile a script and push results to stack. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Value>] compile_function(std::string_view jsCode); ---- == Description Compile ECMAScript source code that defines a function and return the compiled function object. Unlike the `script()` function, the code is not executed. A compiled function with the specified number of arguments that can be executed is returned. If the function code contains more than one function, the return value is the first function compiled. == Return Value A function object that can be called. The function object has the number of arguments defined in the code. If the code does not define a function, an error is returned. == Parameters [cols=2] |=== | Name | Description | *jsCode* | The JavaScript code to compile. |=== Compile a script and push results to stack. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Value>] compile_script(std::string_view jsCode); ---- == Description Compile ECMAScript source code and return it as a compiled function object that executes it. Unlike the `script()` function, the code is not executed. A compiled function that can be executed is returned. The returned function has zero arguments and executes as if we called `script()`. The script returns an implicit return value equivalent to the last non‐empty statement value in the code. == Return Value A function object that can be called. The function object has zero arguments. == Parameters [cols=2] |=== | Name | Description | *jsCode* | The JavaScript code to compile. |=== Compile and run a expression. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Value>] eval(std::string_view jsCode); ---- == Description This function compiles and executes the specified JavaScript code. The script can be used to execute commands or define global variables in the parent context. It evaluates the ECMAScript source code and converts any internal errors to link:#clang-mrdocs-Error[`Error`]. == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *jsCode* | The JavaScript code to execute. |=== Return a global object if it exists. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Value>] getGlobal(std::string_view name); ---- == Description This function returns a link:#clang-mrdocs-js-Value[`Value`] that represents a global variable in the parent context. If the variable does not exist, an error is returned. == Return Value a global object if it exists. == Parameters [cols=2] |=== | Name | Description | *name* | The name of the global variable. |=== Return the global object. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] getGlobalObject(); ---- == Description This function returns a link:#clang-mrdocs-js-Value[`Value`] that represents the global object in the parent context. The global object is the root of the ECMAScript object hierarchy and is the value returned by the global `this` expression. If the global object does not exist, an error is returned. == Return Value the global object. Push a new array to the stack == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] pushArray(); ---- == Return Value An ECMAScript value. Push a boolean to the stack == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] pushBoolean(bool value); ---- == Return Value A Value representing the boolean. == Parameters [cols=2] |=== | Name | Description | *value* | The boolean value to push. |=== Push a double to the stack == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] pushDouble(double value); ---- == Return Value A Value representing the double. == Parameters [cols=2] |=== | Name | Description | *value* | The double value to push. |=== Push an integer to the stack == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] pushInteger(int64_t value); ---- == Return Value A Value representing the integer. == Parameters [cols=2] |=== | Name | Description | *value* | The integer value to push. |=== Push a new object to the stack == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] pushObject(); ---- == Return Value An ECMAScript value. Push a string to the stack == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] pushString(std::string_view value); ---- == Return Value A Value representing the string. == Parameters [cols=2] |=== | Name | Description | *value* | The string value to push. The string is copied to the internal heap. |=== Compile and run a script. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] script(std::string_view jsCode); ---- == Description This function compiles and executes the specified JavaScript code. The script can be used to execute commands or define global variables in the parent context. It evaluates the ECMAScript source code and converts any internal errors to link:#clang-mrdocs-Error[`Error`]. == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *jsCode* | The JavaScript code to execute. |=== Set a global object. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setGlobal( std::string_view name, link:#clang-mrdocs-dom-Value[dom::Value] const& value); ---- == Parameters [cols=2] |=== | Name | Description | *name* | The name of the global variable. | *value* | The value to set. |=== == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class String; ---- An ECMAScript value. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Value; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-js-Value-2constructor-09[`Value`] [.small]#[constructor]# | Constructor | link:#clang-mrdocs-js-Value-2destructor[`~Value`] [.small]#[destructor]# | Destructor | link:#clang-mrdocs-js-Value-operator_assign-007[`operator=`] | Assignment operators | link:#clang-mrdocs-js-Value-apply[`apply`] | Invoke a function with variadic arguments. | link:#clang-mrdocs-js-Value-call[`call`] | Invoke a function. | link:#clang-mrdocs-js-Value-callProp[`callProp`] | Invoke a method. | link:#clang-mrdocs-js-Value-empty[`empty`] | Return if an Array or Object is empty. | link:#clang-mrdocs-js-Value-exists[`exists`] | Return true if a key exists. | link:#clang-mrdocs-js-Value-get-0b[`get`] | `get` overloads | link:#clang-mrdocs-js-Value-getArray[`getArray`] | Return the underlying array. | link:#clang-mrdocs-js-Value-getBool[`getBool`] | Return the underlying boolean value. | link:#clang-mrdocs-js-Value-getDom[`getDom`] | Return the value as a dom::Value | link:#clang-mrdocs-js-Value-getDouble[`getDouble`] | Return the underlying double value. | link:#clang-mrdocs-js-Value-getFunction[`getFunction`] | Return the underlying array. | link:#clang-mrdocs-js-Value-getInteger[`getInteger`] | Return the underlying integer value. | link:#clang-mrdocs-js-Value-getObject[`getObject`] | Return the underlying object. | link:#clang-mrdocs-js-Value-getString[`getString`] | Return the underlying string | link:#clang-mrdocs-js-Value-isArray[`isArray`] | Check if the value is an array. | link:#clang-mrdocs-js-Value-isBoolean[`isBoolean`] | Check if the value is a boolean. | link:#clang-mrdocs-js-Value-isDouble[`isDouble`] | Check if the value is a floating point number. | link:#clang-mrdocs-js-Value-isFunction[`isFunction`] | Check if the value is a function. | link:#clang-mrdocs-js-Value-isInteger[`isInteger`] | Check if the value is an integer number. | link:#clang-mrdocs-js-Value-isNull[`isNull`] | Check if the value is null. | link:#clang-mrdocs-js-Value-isNumber[`isNumber`] | Check if the value is a number. | link:#clang-mrdocs-js-Value-isObject[`isObject`] | Check if the value is an object. | link:#clang-mrdocs-js-Value-isString[`isString`] | Check if the value is a string. | link:#clang-mrdocs-js-Value-isTruthy[`isTruthy`] | Determine if a value is truthy | link:#clang-mrdocs-js-Value-isUndefined[`isUndefined`] | Check if the value is undefined. | link:#clang-mrdocs-js-Value-lookup[`lookup`] | Lookup a sequence of keys. | link:#clang-mrdocs-js-Value-operator_call[`operator()`] | Invoke a function. | link:#clang-mrdocs-js-Value-set-00[`set`] | Set or replace the value for a given key. | link:#clang-mrdocs-js-Value-setlog[`setlog`] | Set "log" property | link:#clang-mrdocs-js-Value-size[`size`] | Return if an Array or Object is empty. | link:#clang-mrdocs-js-Value-swap[`swap`] | Swap two values. | link:#clang-mrdocs-js-Value-type[`type`] | Return the type of the value. | link:#clang-mrdocs-js-Value-2conversion-01[`operator std::string`] | Return the string. | link:#clang-mrdocs-js-Value-2conversion-0e[`operator bool`] | Determine if a value is truthy |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-js-Value-2constructor-03[`Value`] [.small]#[constructor]# | Constructor |=== == Protected Data Members [cols=1] |=== | Name | link:#clang-mrdocs-js-Value-idx_[`idx_`] | link:#clang-mrdocs-js-Value-scope_[`scope_`] |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-js-toString[clang::mrdocs::js::toString]` | Return value as a string. | `link:#clang-mrdocs-js-operator_and-02[clang::mrdocs::js::operator&&]` | | `link:#clang-mrdocs-js-operator_and-0a[clang::mrdocs::js::operator&&]` | | `link:#clang-mrdocs-js-operator_and-0b[clang::mrdocs::js::operator&&]` | Return the first Value that is not truthy, or the last one. | `link:#clang-mrdocs-js-operator_or-0d[clang::mrdocs::js::operator||]` | | `link:#clang-mrdocs-js-operator_or-094[clang::mrdocs::js::operator||]` | | `link:#clang-mrdocs-js-operator_or-09a[clang::mrdocs::js::operator||]` | Return the first Value that is truthy, or the last one. | `link:#clang-mrdocs-js-operator_3way[clang::mrdocs::js::operator<=>]` | Compare two values for inequality. | `link:#clang-mrdocs-js-operator_not_eq-08[clang::mrdocs::js::operator!=]` | | `link:#clang-mrdocs-js-operator_not_eq-0d[clang::mrdocs::js::operator!=]` | | `link:#clang-mrdocs-js-operator_not_eq-02[clang::mrdocs::js::operator!=]` | Inequality operator | `link:#clang-mrdocs-js-operator_eq-06[clang::mrdocs::js::operator==]` | | `link:#clang-mrdocs-js-operator_eq-0b[clang::mrdocs::js::operator==]` | | `link:#clang-mrdocs-js-operator_eq-08[clang::mrdocs::js::operator==]` | Compare two values for equality. | `link:#clang-mrdocs-js-swap[clang::mrdocs::js::swap]` | Swap two values. | `link:#clang-mrdocs-js-Access[clang::mrdocs::js::Access]` | |=== == Description This class represents a value in the JavaScript interpreter. A value is a variable that is defined in a link:#clang-mrdocs-js-Scope[`Scope`]. It can be a primitive type or an object. A link:#clang-mrdocs-js-Value-2constructor-09[`Value`] not associated with a link:#clang-mrdocs-js-Scope[`Scope`] is undefined. The user is responsible for ensuring that the lifetime of a link:#clang-mrdocs-js-Value-2constructor-09[`Value`] does not exceed the lifetime of the link:#clang-mrdocs-js-Scope[`Scope`] that created it. A value can be converted to a DOM value using the link:#clang-mrdocs-js-Value-getDom[`getDom`] function. == See Also Scope Type Constructor == Synopses Declared in `<mrdocs/Support/JavaScript.hpp>` Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value-2constructor-05[Value]() noexcept; ---- [.small]#link:#clang-mrdocs-js-Value-2constructor-05[_» more..._]# Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value-2constructor-07[Value](link:#clang-mrdocs-js-Value[Value] const& other); ---- [.small]#link:#clang-mrdocs-js-Value-2constructor-07[_» more..._]# Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value-2constructor-04[Value](link:#clang-mrdocs-js-Value[Value]&& other) noexcept; ---- [.small]#link:#clang-mrdocs-js-Value-2constructor-04[_» more..._]# Constructor == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value() noexcept; ---- == Description Construct a value that is not associated with a link:#clang-mrdocs-js-Scope[`Scope`]. The value is undefined. Constructor == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-js-Value[Value] const& other); ---- == Description The function pushes a duplicate of value to the stack and associates the new value the top of the stack. == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Constructor == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-js-Value[Value]&& other) noexcept; ---- == Description The function associates the existing value with this object. == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Destructor == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~Value(); ---- == Description If the value is associated with a link:#clang-mrdocs-js-Scope[`Scope`] and it is on top of the stack, it is popped. Also, if there are no other Value references to the link:#clang-mrdocs-js-Scope[`Scope`], all variables defined in that scope are popped via `Scope::reset`. Assignment operators == Synopses Declared in `<mrdocs/Support/JavaScript.hpp>` Copy assignment. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value]& link:#clang-mrdocs-js-Value-operator_assign-00e[operator=](link:#clang-mrdocs-js-Value[Value] const& other); ---- [.small]#link:#clang-mrdocs-js-Value-operator_assign-00e[_» more..._]# Move assignment. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value]& link:#clang-mrdocs-js-Value-operator_assign-0a[operator=](link:#clang-mrdocs-js-Value[Value]&& other) noexcept; ---- [.small]#link:#clang-mrdocs-js-Value-operator_assign-0a[_» more..._]# Copy assignment. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value]& operator=(link:#clang-mrdocs-js-Value[Value] const& other); ---- == Description The function pushes a duplicate of value to the stack and associates the new value the top of the stack. == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Move assignment. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value]& operator=(link:#clang-mrdocs-js-Value[Value]&& other) noexcept; ---- == Description The function associates the existing value with this object. == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to move assign from |=== Invoke a function with variadic arguments. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Value>] apply(std::span<dom::Value> args) const; ---- == Return Value The return value of the method. == Parameters [cols=2] |=== | Name | Description | *args* | Zero or more arguments to pass to the method. |=== Invoke a function. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<dom::Value>... Args> link:#clang-mrdocs-Expected-03[Expected<Value>] call(Args...&&... args) const; ---- == Return Value The return value of the method. == Parameters [cols=2] |=== | Name | Description | *args* | Zero or more arguments to pass to the method. |=== Invoke a method. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> link:#clang-mrdocs-Expected-03[Expected<Value>] callProp( std::string_view prop, Args...&&... args) const; ---- == Return Value The return value of the method. == Parameters [cols=2] |=== | Name | Description | *prop* | The property name of the method to call. | *args* | Zero or more arguments to pass to the method. |=== Return if an Array or Object is empty. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool empty() const; ---- == Return Value if an Array or Object is empty. Return true if a key exists. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool exists(std::string_view key) const; ---- == Return Value `true` if the key exists, `false` otherwise. == Parameters [cols=2] |=== | Name | Description | *key* | The key to check for. |=== `get` overloads == Synopses Declared in `<mrdocs/Support/JavaScript.hpp>` Return the element at a given index. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] link:#clang-mrdocs-js-Value-get-0f[get](std::size_t i) const; ---- [.small]#link:#clang-mrdocs-js-Value-get-0f[_» more..._]# Return the element for a given key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] link:#clang-mrdocs-js-Value-get-08[get](std::string_view key) const; ---- [.small]#link:#clang-mrdocs-js-Value-get-08[_» more..._]# Return the element at a given index or key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] link:#clang-mrdocs-js-Value-get-09[get](link:#clang-mrdocs-dom-Value[dom::Value] const& i) const; ---- [.small]#link:#clang-mrdocs-js-Value-get-09[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<std::string_view> S> link:#clang-mrdocs-js-Value[Value] link:#clang-mrdocs-js-Value-get-04[get](S const& key) const; ---- [.small]#link:#clang-mrdocs-js-Value-get-04[_» more..._]# == Return Value * The element at the given index, or a Value of type `Kind::Undefined` if the index is out of range. * The element for the given key, or a Value of type Kind::Undefined if the key is not found. == Parameters [cols=2] |=== | Name | Description | *i* | The index of the element to return. | *key* | The key to look up. |=== Return the element at a given index. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] get(std::size_t i) const; ---- == Return Value The element at the given index, or a Value of type `Kind::Undefined` if the index is out of range. == Parameters [cols=2] |=== | Name | Description | *i* | The index of the element to return. |=== Return the element for a given key. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] get(std::string_view key) const; ---- == Description If the Value is not an object, or the key is not found, a Value of type Kind::Undefined is returned. == Return Value The element for the given key, or a Value of type Kind::Undefined if the key is not found. == Parameters [cols=2] |=== | Name | Description | *key* | The key to look up. |=== Return the element at a given index or key. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] get(link:#clang-mrdocs-dom-Value[dom::Value] const& i) const; ---- == Return Value the element at a given index or key. == Parameters [cols=2] |=== | Name | Description | *i* | A variant container for any kind of Dom value. |=== == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<std::string_view> S> link:#clang-mrdocs-js-Value[Value] get(S const& key) const; ---- Return the underlying array. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[dom::Array] getArray() const noexcept; ---- == Description [NOTE] Behaviour is undefined if `!isArray()` == Return Value the underlying array. Return the underlying boolean value. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool getBool() const noexcept; ---- == Description [NOTE] Behaviour is undefined if `!isBoolean()` == Return Value the underlying boolean value. Return the value as a dom::Value == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] getDom() const; ---- == Description This function returns the value as a link:#clang-mrdocs-dom-Value[`dom::Value`]. If the value is a primitive type, it is converted to a DOM primitive. If the value is an object, a type with reference semantics to access the underlying DOM object is returned. == Return Value the value as a dom::Value Return the underlying double value. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- double getDouble() const noexcept; ---- == Description [NOTE] Behaviour is undefined if `!isNumber()` == Return Value the underlying double value. Return the underlying array. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Function[dom::Function] getFunction() const noexcept; ---- == Description [NOTE] Behaviour is undefined if `!isFunction()` == Return Value the underlying array. Return the underlying integer value. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int64_t getInteger() const noexcept; ---- == Description [NOTE] Behaviour is undefined if `!isNumber()` == Return Value the underlying integer value. Return the underlying object. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[dom::Object] getObject() const noexcept; ---- == Description [NOTE] Behaviour is undefined if `!isObject()` == Return Value the underlying object. Return the underlying string == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view getString() const; ---- == Description This function returns the value as a string. This function performs no coercions. If the value is not a string, it is not converted to a string. [NOTE] Behaviour is undefined if `!isString()` == Return Value the underlying string Check if the value is an array. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isArray() const noexcept; ---- == Return Value `true` if the value is an array, `false` otherwise Check if the value is a boolean. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isBoolean() const noexcept; ---- == Return Value `true` if the value is a boolean, `false` otherwise Check if the value is a floating point number. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isDouble() const noexcept; ---- == Return Value `true` if the value is a number but not an integer, `false` otherwise Check if the value is a function. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isFunction() const noexcept; ---- == Return Value `true` if the value is a function, `false` otherwise Check if the value is an integer number. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isInteger() const noexcept; ---- == Description All numbers are internally represented by IEEE doubles, which are capable of representing all integers up to 53 bits accurately. This function returns `true` if the value is a number with no precision loss when representing an integer. When `isNumber()` is `true`, the function behaves as if evaluating the condition `d == static_cast<double>(static_cast<int>(d))` where `d` is the result of `toDouble()`. == Return Value `true` if the value is a number with no fractional part, `false` otherwise Check if the value is null. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isNull() const noexcept; ---- == Return Value `true` if the value is null, `false` otherwise Check if the value is a number. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isNumber() const noexcept; ---- == Description In ECMA, the number type is an IEEE double, including +/‐ Infinity and NaN values. Zero sign is also preserved. An IEEE double can represent all integers up to 53 bits accurately. The user should not rely on NaNs preserving their exact non‐normalized form. == Return Value `true` if the value is a number, `false` otherwise Check if the value is an object. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isObject() const noexcept; ---- == Description Check if the value is an object but not an array or function. While in ECMA anything with properties is an object, this function returns `false` for arrays and functions. Properties are key‐value pairs with a string key and an arbitrary value, including undefined. == Return Value `true` if the value is an object, `false` otherwise Check if the value is a string. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isString() const noexcept; ---- == Return Value `true` if the value is a string, `false` otherwise Determine if a value is truthy == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isTruthy() const noexcept; ---- == Description A value is truthy if it is a boolean and is true, a number and not zero, or an non‐empty string, array or object. == Return Value `true` if the value is truthy, `false` otherwise Check if the value is undefined. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isUndefined() const noexcept; ---- == Return Value `true` if the value is undefined, `false` otherwise Lookup a sequence of keys. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] lookup(std::string_view keys) const; ---- == Description This function is equivalent to calling `get` multiple times, once for each key in the sequence of dot‐separated keys. == Return Value The value at the end of the sequence, or a Value of type Kind::Undefined if any key is not found. == Parameters [cols=2] |=== | Name | Description | *keys* | A sequence of keys separated by dots. |=== Invoke a function. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> link:#clang-mrdocs-js-Value[Value] operator()(Args...&&... args) const; ---- == Return Value The return value of the method. == Parameters [cols=2] |=== | Name | Description | *args* | Zero or more arguments to pass to the method. |=== Set or replace the value for a given key. == Synopses Declared in `<mrdocs/Support/JavaScript.hpp>` Set or replace the value for a given key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-js-Value-set-055[set]( std::string_view key, link:#clang-mrdocs-js-Value[Value] const& value) const; ---- [.small]#link:#clang-mrdocs-js-Value-set-055[_» more..._]# Set or replace the value for a given key. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-js-Value-set-057[set]( std::string_view key, link:#clang-mrdocs-dom-Value[dom::Value] const& value) const; ---- [.small]#link:#clang-mrdocs-js-Value-set-057[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *key* | The key to set. | *value* | The value to set. |=== Set or replace the value for a given key. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void set( std::string_view key, link:#clang-mrdocs-js-Value[Value] const& value) const; ---- == Parameters [cols=2] |=== | Name | Description | *key* | The key to set. | *value* | The value to set. |=== Set or replace the value for a given key. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void set( std::string_view key, link:#clang-mrdocs-dom-Value[dom::Value] const& value) const; ---- == Parameters [cols=2] |=== | Name | Description | *key* | The key to set. | *value* | The value to set. |=== Set "log" property == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setlog(); ---- == Description This function sets the "log" property in the object. The "log" property is populated with a function that takes two javascript arguments `(level, message)` where `level` is an unsigned integer and `message` is a string. The mrdocs library function `clang::mrdocs::report::print` is then called with these two arguments to report a message to the console. Return if an Array or Object is empty. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t size() const; ---- == Return Value if an Array or Object is empty. Swap two values. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(link:#clang-mrdocs-js-Value[Value]& other) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *other* | An ECMAScript value. |=== Return the type of the value. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Type[Type] type() const noexcept; ---- == Description This function returns the JavaScript type of the value. The type can represent a primitive type (such as boolean, number, and string) or an object. When the type is an object, the return type also classifies the object as an array or function. An array is an object with the internal ECMAScript class `Array` or a Proxy wrapping an `Array`. A function is an object with the internal ECMAScript class `Function`. == Return Value the type of the value. Return the string. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit operator std::string() const noexcept; ---- == Return Value the string. Determine if a value is truthy == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit operator bool() const noexcept; ---- == Description A value is truthy if it is a boolean and is true, a number and not zero, or an non‐empty string, array or object. == Return Value `true` if the value is truthy, `false` otherwise Constructor == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value( int, link:#clang-mrdocs-js-Scope[Scope]&) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int idx_; ---- == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Scope[Scope]* scope_; ---- Types of values. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class Type : int; ---- == Members [cols=2] |=== | Name | Description |`undefined` |The value is undefined |`null` |The value is null |`boolean` |The value is a boolean |`number` |The value is a number |`string` |The value is a string |`object` |The value is a function |`function` |The value is an array |`array` |The value is an array |=== Return the first Value that is not truthy, or the last one. == Synopses Declared in `<mrdocs/Support/JavaScript.hpp>` Return the first Value that is not truthy, or the last one. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] link:#clang-mrdocs-js-operator_and-0b[operator&&]( link:#clang-mrdocs-js-Value[Value] const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs); ---- [.small]#link:#clang-mrdocs-js-operator_and-0b[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-js-operator_and-0a[operator&&]( S const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-js-operator_and-0a[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-js-operator_and-02[operator&&]( link:#clang-mrdocs-js-Value[Value] const& lhs, S const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-js-operator_and-02[_» more..._]# Return the first Value that is not truthy, or the last one. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] operator&&( link:#clang-mrdocs-js-Value[Value] const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs); ---- == Description This function is equivalent to the JavaScript `&&` operator. == Return Value the first Value that is not truthy, or the last one. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator&&( S const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator&&( link:#clang-mrdocs-js-Value[Value] const& lhs, S const& rhs) noexcept; ---- Return the first Value that is truthy, or the last one. == Synopses Declared in `<mrdocs/Support/JavaScript.hpp>` Return the first Value that is truthy, or the last one. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] link:#clang-mrdocs-js-operator_or-09a[operator||]( link:#clang-mrdocs-js-Value[Value] const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs); ---- [.small]#link:#clang-mrdocs-js-operator_or-09a[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-js-operator_or-094[operator||]( S const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-js-operator_or-094[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-js-operator_or-0d[operator||]( link:#clang-mrdocs-js-Value[Value] const& lhs, S const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-js-operator_or-0d[_» more..._]# Return the first Value that is truthy, or the last one. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-js-Value[Value] operator||( link:#clang-mrdocs-js-Value[Value] const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs); ---- == Description This function is equivalent to the JavaScript `||` operator. == Return Value the first Value that is truthy, or the last one. == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator||( S const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator||( link:#clang-mrdocs-js-Value[Value] const& lhs, S const& rhs) noexcept; ---- Register a JavaScript helper function == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void, Error>] registerHelper( link:#clang-mrdocs-Handlebars[clang::mrdocs::Handlebars]& hbs, std::string_view name, link:#clang-mrdocs-js-Context[Context]& ctx, std::string_view script); ---- == Description This function registers a JavaScript function as a helper function that can be called from Handlebars templates. == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *hbs* | The Handlebars instance to register the helper into | *name* | The name of the helper function | *ctx* | The JavaScript context to use | *script* | The JavaScript code that defines the helper function |=== Swap two values. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap( link:#clang-mrdocs-js-Value[Value]& v0, link:#clang-mrdocs-js-Value[Value]& v1) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *v0* | An ECMAScript value. | *v1* | An ECMAScript value. |=== Return value as a string. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string toString(link:#clang-mrdocs-js-Value[Value] const& value); ---- == Description This function coerces any value to a string. == Return Value value as a string. == Parameters [cols=2] |=== | Name | Description | *value* | An ECMAScript value. |=== Compare two values for equality. == Synopses Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-js-operator_eq-06[operator==]( link:#clang-mrdocs-js-Value[Value] const& lhs, S const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-js-operator_eq-06[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-js-operator_eq-0b[operator==]( S const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-js-operator_eq-0b[_» more..._]# Compare two values for equality. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-js-operator_eq-08[operator==]( link:#clang-mrdocs-js-Value[Value] const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-js-operator_eq-08[_» more..._]# == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator==( link:#clang-mrdocs-js-Value[Value] const& lhs, S const& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator==( S const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- Compare two values for equality. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( link:#clang-mrdocs-js-Value[Value] const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- == Description This operator uses strict equality, meaning that the types must match exactly, and for objects and arrays the children must match exactly. The `==` operator behaves differently for objects compared to primitive data types like numbers and strings. When comparing objects using `==`, it checks for reference equality, not structural equality. This means that two objects are considered equal with `===` only if they reference the exact same object in memory. [NOTE] In JavaScript, this is equivalent to the `===` operator, which does not perform type conversions. == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Inequality operators == Synopses Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-js-operator_not_eq-08[operator!=]( link:#clang-mrdocs-js-Value[Value] const& lhs, S const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-js-operator_not_eq-08[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto link:#clang-mrdocs-js-operator_not_eq-0d[operator!=]( S const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-js-operator_not_eq-0d[_» more..._]# Inequality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-js-operator_not_eq-02[operator!=]( link:#clang-mrdocs-js-Value[Value] const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-js-operator_not_eq-02[_» more..._]# == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator!=( link:#clang-mrdocs-js-Value[Value] const& lhs, S const& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<Value> S> auto operator!=( S const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- Inequality operator == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator!=( link:#clang-mrdocs-js-Value[Value] const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- == Return Value `true` if the objects are not equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Compare two values for inequality. == Synopsis Declared in `<mrdocs/Support/JavaScript.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>( link:#clang-mrdocs-js-Value[Value] const& lhs, link:#clang-mrdocs-js-Value[Value] const& rhs) noexcept; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Access[`Access`] | | link:#clang-mrdocs-lua-Context[`Context`] | A reference to an instance of a Lua interpreter. | link:#clang-mrdocs-lua-Function[`Function`] | A Lua function. | link:#clang-mrdocs-lua-Param[`Param`] | A lazy container to push values to the Lua stack. | link:#clang-mrdocs-lua-Scope[`Scope`] | | link:#clang-mrdocs-lua-String[`String`] | A Lua string. | link:#clang-mrdocs-lua-Table[`Table`] | A Lua table. | link:#clang-mrdocs-lua-Value[`Value`] | A Lua value. | link:#clang-mrdocs-lua-zstring[`zstring`] | A null‐terminated string. | link:#clang-mrdocs-lua-FunctionPtr[`FunctionPtr`] | |=== == Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Type[`Type`] | Types of values. |=== == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using FunctionPtr = link:#clang-mrdocs-lua-Value[Value](*)(std::vector<Value>); ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Access; ---- A reference to an instance of a Lua interpreter. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Context; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Context-2constructor-0a[`Context`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-lua-Context-2destructor[`~Context`] [.small]#[destructor]# | Destructor. | link:#clang-mrdocs-lua-Context-operator_assign[`operator=`] [.small]#[deleted]# | Copy assignment. |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-lua-Scope[clang::mrdocs::lua::Scope]` | | `link:#clang-mrdocs-lua-Access[clang::mrdocs::lua::Access]` | |=== Constructor. == Synopses Declared in `<mrdocs/Support/Lua.hpp>` Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Context-2constructor-0b[Context](); ---- [.small]#link:#clang-mrdocs-lua-Context-2constructor-0b[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Context-2constructor-07[Context](link:#clang-mrdocs-lua-Context[Context] const& other) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Context-2constructor-07[_» more..._]# Constructor. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Context(); ---- Constructor. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Context(link:#clang-mrdocs-lua-Context[Context] const& other) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Destructor. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~Context(); ---- Copy assignment. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Context[Context]& operator=(link:#clang-mrdocs-lua-Context[Context] const& other) = delete; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== A Lua function. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Function : public link:#clang-mrdocs-lua-Value[Value] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-lua-Value[Value]` | A Lua value. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Function-2constructor-0b[`Function`] [.small]#[constructor]# | Construct from `Value` | link:#clang-mrdocs-lua-Value-call[`call`] | Invoke the value as a function. | link:#clang-mrdocs-lua-Value-displayString[`displayString`] | Return a string representation. | link:#clang-mrdocs-lua-Value-isBoolean[`isBoolean`] | | link:#clang-mrdocs-lua-Value-isFunction[`isFunction`] | | link:#clang-mrdocs-lua-Value-isNil[`isNil`] | | link:#clang-mrdocs-lua-Value-isNumber[`isNumber`] | | link:#clang-mrdocs-lua-Value-isString[`isString`] | | link:#clang-mrdocs-lua-Value-isTable[`isTable`] | | link:#clang-mrdocs-lua-Value-operator_call[`operator()`] | Invoke the value as a function. | link:#clang-mrdocs-lua-Value-type[`type`] | |=== == Protected Data Members [cols=1] |=== | Name | link:#clang-mrdocs-lua-Value-index_[`index_`] | link:#clang-mrdocs-lua-Value-scope_[`scope_`] |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-lua-Access[clang::mrdocs::lua::Access]` | |=== Construct from `Value` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Function(link:#clang-mrdocs-lua-Value[Value] value); ---- == Parameters [cols=2] |=== | Name | Description | *value* | The object to construct from |=== A lazy container to push values to the Lua stack. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Param; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Param-2constructor-09[`Param`] [.small]#[constructor]# [.small]#[deleted]# | Constructors | link:#clang-mrdocs-lua-Param-2destructor[`~Param`] [.small]#[destructor]# | Destructor | link:#clang-mrdocs-lua-Param-operator_assign[`operator=`] [.small]#[deleted]# | Copy assignment operator |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-lua-Param-arr_[`arr_`] [.small]#[variant member]# | link:#clang-mrdocs-lua-Param-b_[`b_`] [.small]#[variant member]# | link:#clang-mrdocs-lua-Param-i_[`i_`] [.small]#[variant member]# | link:#clang-mrdocs-lua-Param-index_[`index_`] [.small]#[variant member]# | link:#clang-mrdocs-lua-Param-obj_[`obj_`] [.small]#[variant member]# | link:#clang-mrdocs-lua-Param-s_[`s_`] [.small]#[variant member]# |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-lua-Access[clang::mrdocs::lua::Access]` | |=== Constructors == Synopses Declared in `<mrdocs/Support/Lua.hpp>` Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Param-2constructor-07b[Param](link:#clang-mrdocs-lua-Param[Param] const& other) = delete; ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-07b[_» more..._]# Construct from `Array` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Param-2constructor-049[Param](link:#clang-mrdocs-dom-Array[dom::Array] arr) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-049[_» more..._]# Construct from `Object` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Param-2constructor-033[Param](link:#clang-mrdocs-dom-Object[dom::Object] obj) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-033[_» more..._]# Construct from `int64_t` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Param-2constructor-00[Param](int64_t value) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-00[_» more..._]# Construct from `nullptr_t` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Param-2constructor-014[Param](std::nullptr_t value) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-014[_» more..._]# Construct from `string_view` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Param-2constructor-078[Param](std::string_view s) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-078[_» more..._]# Construct from `Value` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Param-2constructor-048[Param](link:#clang-mrdocs-lua-Value[Value] const& value) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-048[_» more..._]# Construct from `Value` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Param-2constructor-0d[Param](link:#clang-mrdocs-dom-Value[dom::Value] const& value) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-0d[_» more..._]# Construct from `char` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Param-2constructor-032[Param](char const* s) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-032[_» more..._]# Construct from `Enum` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Enum> requires std::is_enum_v<Enum> link:#clang-mrdocs-lua-Param-2constructor-0b5[Param](Enum v) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-0b5[_» more..._]# Construct from `Boolean` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Boolean> requires std::is_same_v<Boolean, bool> link:#clang-mrdocs-lua-Param-2constructor-0b7[Param](Boolean const& b) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-0b7[_» more..._]# Construct from `String` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class String> requires std::is_convertible_v< String, std::string_view> link:#clang-mrdocs-lua-Param-2constructor-02[Param](String const& s); ---- [.small]#link:#clang-mrdocs-lua-Param-2constructor-02[_» more..._]# Copy constructor == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Param(link:#clang-mrdocs-lua-Param[Param] const& other) = delete; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Construct from `Array` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Param(link:#clang-mrdocs-dom-Array[dom::Array] arr) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *arr* | The object to construct from |=== Construct from `Object` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Param(link:#clang-mrdocs-dom-Object[dom::Object] obj) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *obj* | The object to construct from |=== Construct from `int64_t` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Param(int64_t value) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *value* | The object to construct from |=== Construct from `nullptr_t` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Param(std::nullptr_t value) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *value* | The object to construct from |=== Construct from `string_view` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Param(std::string_view s) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *s* | The object to construct from |=== Construct from `Value` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Param(link:#clang-mrdocs-lua-Value[Value] const& value) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy construct from |=== Construct from `Value` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Param(link:#clang-mrdocs-dom-Value[dom::Value] const& value) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy construct from |=== Construct from `char` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Param(char const* s) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *s* | The value to construct from |=== Construct from `Enum` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Enum> requires std::is_enum_v<Enum> Param(Enum v) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *v* | The object to construct from |=== Construct from `Boolean` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Boolean> requires std::is_same_v<Boolean, bool> Param(Boolean const& b) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *b* | The object to copy construct from |=== Construct from `String` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class String> requires std::is_convertible_v< String, std::string_view> Param(String const& s); ---- == Parameters [cols=2] |=== | Name | Description | *s* | The object to copy construct from |=== Destructor == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~Param(); ---- Copy assignment operator == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Param[Param]& operator=(link:#clang-mrdocs-lua-Param[Param] const& other) = delete; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[dom::Array] arr_; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool b_; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int i_; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int index_; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[dom::Object] obj_; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view s_; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Scope; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Scope-2constructor[`Scope`] [.small]#[constructor]# | Construct from `Context` | link:#clang-mrdocs-lua-Scope-2destructor[`~Scope`] [.small]#[destructor]# | Destructor | link:#clang-mrdocs-lua-Scope-getGlobal[`getGlobal`] | Return a value from the global table if it exists. | link:#clang-mrdocs-lua-Scope-getGlobalTable[`getGlobalTable`] | Return the global table. | link:#clang-mrdocs-lua-Scope-loadChunk-0b[`loadChunk`] | Load a Lua chunk | link:#clang-mrdocs-lua-Scope-loadChunkFromFile[`loadChunkFromFile`] | Run a Lua chunk. |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-lua-Access[clang::mrdocs::lua::Access]` | |=== Construct from `Context` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Scope(link:#clang-mrdocs-lua-Context[Context] const& ctx) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ctx* | The object to copy construct from |=== Destructor == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~Scope(); ---- Return a value from the global table if it exists. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Value>] getGlobal( std::string_view key, std::source_location loc = source_location::current()); ---- == Return Value The value if it exists, or an error. == Parameters [cols=2] |=== | Name | Description | *key* | The key to get. | *loc* | The source location of the call site. |=== Return the global table. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Table[Table] getGlobalTable(); ---- == Return Value the global table. Load a Lua chunk == Synopses Declared in `<mrdocs/Support/Lua.hpp>` Load a Lua chunk [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Function>] link:#clang-mrdocs-lua-Scope-loadChunk-01[loadChunk]( std::string_view luaChunk, std::source_location loc = source_location::current()); ---- [.small]#link:#clang-mrdocs-lua-Scope-loadChunk-01[_» more..._]# Load a Lua chunk [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Function>] link:#clang-mrdocs-lua-Scope-loadChunk-07[loadChunk]( std::string_view luaChunk, link:#clang-mrdocs-lua-zstring[zstring] chunkName, std::source_location loc = source_location::current()); ---- [.small]#link:#clang-mrdocs-lua-Scope-loadChunk-07[_» more..._]# == Return Value The function if successful, or an error. == Parameters [cols=2] |=== | Name | Description | *luaChunk* | The Lua chunk to load. | *loc* | The source location of the call site. | *chunkName* | The name of the chunk (used in error messages). |=== Load a Lua chunk == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Function>] loadChunk( std::string_view luaChunk, std::source_location loc = source_location::current()); ---- == Return Value The function if successful, or an error. == Parameters [cols=2] |=== | Name | Description | *luaChunk* | The Lua chunk to load. | *loc* | The source location of the call site. |=== Load a Lua chunk == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Function>] loadChunk( std::string_view luaChunk, link:#clang-mrdocs-lua-zstring[zstring] chunkName, std::source_location loc = source_location::current()); ---- == Return Value The function if successful, or an error. == Parameters [cols=2] |=== | Name | Description | *luaChunk* | The Lua chunk to load. | *chunkName* | The name of the chunk (used in error messages). | *loc* | The source location of the call site. |=== Run a Lua chunk. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<Function>] loadChunkFromFile( std::string_view fileName, std::source_location loc = source_location::current()); ---- == Return Value The function if successful, or an error. == Parameters [cols=2] |=== | Name | Description | *fileName* | The name of the file to load. | *loc* | The source location of the call site. |=== A Lua string. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class String : public link:#clang-mrdocs-lua-Value[Value] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-lua-Value[Value]` | A Lua value. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-String-2constructor-0b[`String`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-lua-Value-call[`call`] | Invoke the value as a function. | link:#clang-mrdocs-lua-Value-displayString[`displayString`] | Return a string representation. | link:#clang-mrdocs-lua-String-get[`get`] | | link:#clang-mrdocs-lua-Value-isBoolean[`isBoolean`] | | link:#clang-mrdocs-lua-Value-isFunction[`isFunction`] | | link:#clang-mrdocs-lua-Value-isNil[`isNil`] | | link:#clang-mrdocs-lua-Value-isNumber[`isNumber`] | | link:#clang-mrdocs-lua-Value-isString[`isString`] | | link:#clang-mrdocs-lua-Value-isTable[`isTable`] | | link:#clang-mrdocs-lua-Value-operator_call[`operator()`] | Invoke the value as a function. | link:#clang-mrdocs-lua-String-operator_star[`operator*`] | | link:#clang-mrdocs-lua-Value-type[`type`] | | link:#clang-mrdocs-lua-String-2conversion[`operator std::string_view`] | Conversion to `string_view` |=== == Protected Data Members [cols=1] |=== | Name | link:#clang-mrdocs-lua-Value-index_[`index_`] | link:#clang-mrdocs-lua-Value-scope_[`scope_`] |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-lua-Access[clang::mrdocs::lua::Access]` | |=== Constructors == Synopses Declared in `<mrdocs/Support/Lua.hpp>` Construct from `Value` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-String-2constructor-08[String](link:#clang-mrdocs-lua-Value[Value] value); ---- [.small]#link:#clang-mrdocs-lua-String-2constructor-08[_» more..._]# Construct from `string_view` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-lua-String-2constructor-02[String](std::string_view s); ---- [.small]#link:#clang-mrdocs-lua-String-2constructor-02[_» more..._]# Construct from `Value` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- String(link:#clang-mrdocs-lua-Value[Value] value); ---- == Parameters [cols=2] |=== | Name | Description | *value* | The object to construct from |=== Construct from `string_view` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit String(std::string_view s); ---- == Parameters [cols=2] |=== | Name | Description | *s* | The object to construct from |=== == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view get() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view operator*() const noexcept; ---- Conversion to `string_view` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- operator std::string_view() const noexcept; ---- == Return Value The object converted to `string_view` A Lua table. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Table : public link:#clang-mrdocs-lua-Value[Value] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-lua-Value[Value]` | A Lua value. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Table-2constructor-07[`Table`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-lua-Value-call[`call`] | Invoke the value as a function. | link:#clang-mrdocs-lua-Value-displayString[`displayString`] | Return a string representation. | link:#clang-mrdocs-lua-Table-get[`get`] | | link:#clang-mrdocs-lua-Value-isBoolean[`isBoolean`] | | link:#clang-mrdocs-lua-Value-isFunction[`isFunction`] | | link:#clang-mrdocs-lua-Value-isNil[`isNil`] | | link:#clang-mrdocs-lua-Value-isNumber[`isNumber`] | | link:#clang-mrdocs-lua-Value-isString[`isString`] | | link:#clang-mrdocs-lua-Value-isTable[`isTable`] | | link:#clang-mrdocs-lua-Value-operator_call[`operator()`] | Invoke the value as a function. | link:#clang-mrdocs-lua-Table-set[`set`] | Create or replace the value with a key. | link:#clang-mrdocs-lua-Value-type[`type`] | |=== == Protected Data Members [cols=1] |=== | Name | link:#clang-mrdocs-lua-Value-index_[`index_`] | link:#clang-mrdocs-lua-Value-scope_[`scope_`] |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-lua-Access[clang::mrdocs::lua::Access]` | |=== Constructors == Synopses Declared in `<mrdocs/Support/Lua.hpp>` Construct from `Value` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Table-2constructor-09[Table](link:#clang-mrdocs-lua-Value[Value] value); ---- [.small]#link:#clang-mrdocs-lua-Table-2constructor-09[_» more..._]# Construct from `Scope` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-lua-Table-2constructor-0e[Table](link:#clang-mrdocs-lua-Scope[Scope]& scope); ---- [.small]#link:#clang-mrdocs-lua-Table-2constructor-0e[_» more..._]# Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Table-2constructor-05[Table]( link:#clang-mrdocs-lua-Scope[Scope]&, link:#clang-mrdocs-dom-Object[dom::Object] const& obj); ---- [.small]#link:#clang-mrdocs-lua-Table-2constructor-05[_» more..._]# Construct from `Value` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Table(link:#clang-mrdocs-lua-Value[Value] value); ---- == Parameters [cols=2] |=== | Name | Description | *value* | The object to construct from |=== Construct from `Scope` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Table(link:#clang-mrdocs-lua-Scope[Scope]& scope); ---- == Parameters [cols=2] |=== | Name | Description | *scope* | The object to copy construct from |=== Constructor == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Table( link:#clang-mrdocs-lua-Scope[Scope]&, link:#clang-mrdocs-dom-Object[dom::Object] const& obj); ---- == Parameters [cols=2] |=== | Name | Description | *obj* | A container of key and value pairs. |=== == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Value[Value] get(std::string_view key) const; ---- Create or replace the value with a key. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void set( std::string_view key, link:#clang-mrdocs-lua-Param[Param] value) const; ---- == Parameters [cols=2] |=== | Name | Description | *key* | The key to set. | *value* | The value to set. |=== A Lua value. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Value; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Value-2constructor-0b8[`Value`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-lua-Value-2destructor[`~Value`] [.small]#[destructor]# | Destructor. | link:#clang-mrdocs-lua-Value-call[`call`] | Invoke the value as a function. | link:#clang-mrdocs-lua-Value-displayString[`displayString`] | Return a string representation. | link:#clang-mrdocs-lua-Value-isBoolean[`isBoolean`] | | link:#clang-mrdocs-lua-Value-isFunction[`isFunction`] | | link:#clang-mrdocs-lua-Value-isNil[`isNil`] | | link:#clang-mrdocs-lua-Value-isNumber[`isNumber`] | | link:#clang-mrdocs-lua-Value-isString[`isString`] | | link:#clang-mrdocs-lua-Value-isTable[`isTable`] | | link:#clang-mrdocs-lua-Value-operator_call[`operator()`] | Invoke the value as a function. | link:#clang-mrdocs-lua-Value-type[`type`] | |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Value-2constructor-01[`Value`] [.small]#[constructor]# | Constructor |=== == Protected Data Members [cols=1] |=== | Name | link:#clang-mrdocs-lua-Value-index_[`index_`] | link:#clang-mrdocs-lua-Value-scope_[`scope_`] |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-lua-Access[clang::mrdocs::lua::Access]` | |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-Function[`Function`] | A Lua function. | link:#clang-mrdocs-lua-String[`String`] | A Lua string. | link:#clang-mrdocs-lua-Table[`Table`] | A Lua table. |=== Constructor. == Synopses Declared in `<mrdocs/Support/Lua.hpp>` Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Value-2constructor-0c[Value]() noexcept; ---- [.small]#link:#clang-mrdocs-lua-Value-2constructor-0c[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Value-2constructor-0bf[Value](link:#clang-mrdocs-lua-Value[Value] const& other); ---- [.small]#link:#clang-mrdocs-lua-Value-2constructor-0bf[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Value-2constructor-08[Value](link:#clang-mrdocs-lua-Value[Value]&& other) noexcept; ---- [.small]#link:#clang-mrdocs-lua-Value-2constructor-08[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *other* | The value to copy. |=== Constructor. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value() noexcept; ---- == Description Default constructed values have no scope or assigned stack index and are equivalent to the value Nil. Constructor. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-lua-Value[Value] const& other); ---- == Description The new value will be assigned a new stack index which has the same underlying value as `other`. == Parameters [cols=2] |=== | Name | Description | *other* | The value to copy. |=== Constructor. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value(link:#clang-mrdocs-lua-Value[Value]&& other) noexcept; ---- == Description The newly constructed object will acquire the same stack index, while the moved‐from object will become as if default‐constructed. == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Destructor. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~Value(); ---- == Description The Lua value will eventually be removed from the stack. Invoke the value as a function. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> link:#clang-mrdocs-Expected-03[Expected<Value>] call(Args...&&... args); ---- == Description If the invocation fails the return value will contain the corresponding error. == Return Value The return value of the function. == Parameters [cols=2] |=== | Name | Description | *args* | Zero or more values to pass to the function. |=== Return a string representation. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string displayString() const; ---- == Description This function is used for diagnostics. == Return Value a string representation. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isBoolean() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isFunction() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isNil() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isNumber() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isString() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isTable() const noexcept; ---- Invoke the value as a function. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> link:#clang-mrdocs-lua-Value[Value] operator()(Args...&&... args); ---- == Return Value Another instance of the object == Parameters [cols=2] |=== | Name | Description | *args* | Zero or more values to pass to the function. |=== == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Type[Type] type() const noexcept; ---- Constructor == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Value( int, link:#clang-mrdocs-lua-Scope[Scope]&) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int index_; ---- == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-Scope[Scope]* scope_; ---- A null‐terminated string. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class zstring; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-lua-zstring-2constructor-05d[`zstring`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-lua-zstring-c_str[`c_str`] | |=== Constructors == Synopses Declared in `<mrdocs/Support/Lua.hpp>` Construct from `string_view` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-zstring-2constructor-06[zstring](std::string_view s); ---- [.small]#link:#clang-mrdocs-lua-zstring-2constructor-06[_» more..._]# Construct from `string` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-zstring-2constructor-03[zstring](std::string const& s); ---- [.small]#link:#clang-mrdocs-lua-zstring-2constructor-03[_» more..._]# Construct from `char` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-lua-zstring-2constructor-051[zstring](char const* s) noexcept; ---- [.small]#link:#clang-mrdocs-lua-zstring-2constructor-051[_» more..._]# Construct from `string_view` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- zstring(std::string_view s); ---- == Parameters [cols=2] |=== | Name | Description | *s* | The object to construct from |=== Construct from `string` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- zstring(std::string const& s); ---- == Parameters [cols=2] |=== | Name | Description | *s* | The object to copy construct from |=== Construct from `char` == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- zstring(char const* s) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *s* | The value to construct from |=== == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char const* c_str() const noexcept; ---- Types of values. == Synopsis Declared in `<mrdocs/Support/Lua.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class Type : int; ---- == Members [cols=2] |=== | Name | Description |`nil` |The value is nil |`boolean` |The value is a boolean |`number` |The value is a number |`string` |The value is a string |`table` |The value is a table |`function` |The value is a function |=== == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-report-Located[`Located`] | Parameter type that adds a source location to a value. | link:#clang-mrdocs-report-Results[`Results`] | Provides statistics on the number of reported messages. |=== == Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-report-Level[`Level`] | Severity levels attached to reported messags. |=== == Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-report-debug[`debug`] | Report a message to the console. | link:#clang-mrdocs-report-error[`error`] | Report a message to the console. | link:#clang-mrdocs-report-fatal[`fatal`] | Report a message to the console. | link:#clang-mrdocs-report-getMinimumLevel[`getMinimumLevel`] | | link:#clang-mrdocs-report-info[`info`] | Report a message to the console. | link:#clang-mrdocs-report-log[`log`] | Format a message to the console. | link:#clang-mrdocs-report-print-06[`print`] | Report a message to the console. | link:#clang-mrdocs-report-setMinimumLevel[`setMinimumLevel`] | Set the minimum threshold level for reporting. | link:#clang-mrdocs-report-setSourceLocationWarnings[`setSourceLocationWarnings`] | If true, source location information will be printed with warnings, errors, and fatal messages. | link:#clang-mrdocs-report-trace[`trace`] | Report a message to the console. | link:#clang-mrdocs-report-warn[`warn`] | Report a message to the console. |=== == Variables [cols=2] |=== | Name | Description | link:#clang-mrdocs-report-results[`results`] | Holds current statistics on reported messages. |=== Parameter type that adds a source location to a value. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> struct Located; ---- == Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-report-Located-2constructor[`Located`] [.small]#[constructor]# |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-report-Located-value[`value`] | link:#clang-mrdocs-report-Located-where[`where`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-report-debug[`debug`] | Report a message to the console. | link:#clang-mrdocs-report-error[`error`] | Report a message to the console. | link:#clang-mrdocs-report-fatal[`fatal`] | Report a message to the console. | link:#clang-mrdocs-report-info[`info`] | Report a message to the console. | link:#clang-mrdocs-report-trace[`trace`] | Report a message to the console. | link:#clang-mrdocs-report-warn[`warn`] | Report a message to the console. |=== == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Arg> requires std::is_constructible_v<T, Arg> Located( Arg&& arg, std::source_location const& loc = source_location::current()); ---- == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- T value; ---- == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::source_location where; ---- Provides statistics on the number of reported messages. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Results; ---- == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-report-Results-debugCount[`debugCount`] | link:#clang-mrdocs-report-Results-errorCount[`errorCount`] | link:#clang-mrdocs-report-Results-fatalCount[`fatalCount`] | link:#clang-mrdocs-report-Results-infoCount[`infoCount`] | link:#clang-mrdocs-report-Results-traceCount[`traceCount`] | link:#clang-mrdocs-report-Results-warnCount[`warnCount`] |=== == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t debugCount; ---- == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t errorCount; ---- == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t fatalCount; ---- == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t infoCount; ---- == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t traceCount; ---- == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t warnCount; ---- Severity levels attached to reported messags. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class Level : int; ---- == Members [cols=2] |=== | Name | Description |`trace` |Programming trace messages |`debug` |Debug messages |`info` |Informational messages |`warn` |Warning messages |`error` |Error messages |`fatal` |Fatal error messages |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-report-log[`log`] | Format a message to the console. | link:#clang-mrdocs-report-print-00[`print`] | Report a message to the console. | link:#clang-mrdocs-report-setMinimumLevel[`setMinimumLevel`] | Set the minimum threshold level for reporting. |=== Report a message to the console. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> void debug( link:#clang-mrdocs-report-Located[Located<std::string_view>] format, Args...&&... args); ---- == Parameters [cols=2] |=== | Name | Description | *format* | The format string. | *args* | Optional additional arguments |=== Report a message to the console. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> void error( link:#clang-mrdocs-report-Located[Located<std::string_view>] format, Args...&&... args); ---- == Parameters [cols=2] |=== | Name | Description | *format* | The format string. | *args* | Optional additional arguments |=== Report a message to the console. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> void fatal( link:#clang-mrdocs-report-Located[Located<std::string_view>] format, Args...&&... args); ---- == Parameters [cols=2] |=== | Name | Description | *format* | The format string. | *args* | Optional additional arguments |=== == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-report-Level[Level] getMinimumLevel() noexcept; ---- Report a message to the console. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> void info( link:#clang-mrdocs-report-Located[Located<std::string_view>] format, Args...&&... args); ---- == Parameters [cols=2] |=== | Name | Description | *format* | The format string. | *args* | Optional additional arguments |=== Format a message to the console. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> void log( link:#clang-mrdocs-report-Level[Level] level, link:#clang-mrdocs-report-Located[Located<std::string_view>] fs, Args...&&... args); ---- == Parameters [cols=2] |=== | Name | Description | *level* | 0 to 4 The severity of the report. 0 is debug and 4 is fatal. | *fs* | The format string. | *args* | Optional additional arguments used to format a message to print. A trailing newline will be added to the message automatically. |=== Report a message to the console. == Synopses Declared in `<mrdocs/Support/Report.hpp>` Report a message to the console. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-report-print-0d[print](std::string const& text); ---- [.small]#link:#clang-mrdocs-report-print-0d[_» more..._]# Report a message to the console. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-report-print-00[print]( link:#clang-mrdocs-report-Level[Level] level, std::string const& text, std::source_location const* loc = nullptr, link:#clang-mrdocs-Error[Error] const* e = nullptr); ---- [.small]#link:#clang-mrdocs-report-print-00[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *text* | The message to print. A trailing newline will be added to the message automatically. | *level* | 0 to 4 The severity of the report. 0 is debug and 4 is fatal. | *loc* | The source location of the report. If this value is null, no location is printed. |=== Report a message to the console. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void print(std::string const& text); ---- == Parameters [cols=2] |=== | Name | Description | *text* | The message to print. A trailing newline will be added to the message automatically. |=== Report a message to the console. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void print( link:#clang-mrdocs-report-Level[Level] level, std::string const& text, std::source_location const* loc = nullptr, link:#clang-mrdocs-Error[Error] const* e = nullptr); ---- == Parameters [cols=2] |=== | Name | Description | *level* | 0 to 4 The severity of the report. 0 is debug and 4 is fatal. | *text* | The message to print. A trailing newline will be added to the message automatically. | *loc* | The source location of the report. If this value is null, no location is printed. | *e* | Holds the description of an error, or success. |=== Set the minimum threshold level for reporting. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setMinimumLevel(link:#clang-mrdocs-report-Level[Level] level) noexcept; ---- == Description Messages below this level will not be printed. A value of 5 will suppress all messages. Note that messages will still be counted towards result totals even if they are not displayed. == Parameters [cols=2] |=== | Name | Description | *level* | Severity levels attached to reported messags. |=== If true, source location information will be printed with warnings, errors, and fatal messages. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setSourceLocationWarnings(bool b) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *b* | true to enable source location information, false to disable it. The default value is true. |=== Report a message to the console. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> void trace( link:#clang-mrdocs-report-Located[Located<std::string_view>] format, Args...&&... args); ---- == Parameters [cols=2] |=== | Name | Description | *format* | The format string. | *args* | Optional additional arguments |=== Report a message to the console. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> void warn( link:#clang-mrdocs-report-Located[Located<std::string_view>] format, Args...&&... args); ---- == Parameters [cols=2] |=== | Name | Description | *format* | The format string. | *args* | Optional additional arguments |=== Holds current statistics on reported messages. == Synopsis Declared in `<mrdocs/Support/Report.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- extern link:#clang-mrdocs-report-Results[Results] results; ---- Like std::optional<Location> == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using OptionalLocation = link:#clang-mrdocs-Optional[Optional<Location, LocationEmptyPredicate>]; ---- == Synopsis Declared in `<mrdocs/ADT/UnorderedStringMap.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> using UnorderedStringMap = std::unordered_map<std::string, T, StringHash, std::equal_to>; ---- == Synopsis Declared in `<mrdocs/ADT/UnorderedStringMap.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> using UnorderedStringMultiMap = std::unordered_multimap<std::string, T, StringHash, std::equal_to>; ---- == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> using add_const_from_t = add_const_from<From, To>::type; ---- == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> using add_cv_from_t = add_cv_from<From, To>::type; ---- == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> using add_cvref_from_t = add_cvref_from<From, To>::type; ---- == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> using add_lvalue_reference_from_t = add_lvalue_reference_from<From, To>::type; ---- == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> using add_reference_from_t = add_reference_from<From, To>::type; ---- == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> using add_rvalue_reference_from_t = add_rvalue_reference_from<From, To>::type; ---- == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> using add_volatile_from_t = add_volatile_from<From, To>::type; ---- == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U> using make_dependent_t = T; ---- == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct AnyFileVisitor; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-AnyFileVisitor-2destructor[`~AnyFileVisitor`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-AnyFileVisitor-visitFile[`visitFile`] [.small]#[virtual]# | |=== Destructor == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual ~AnyFileVisitor() = 0; ---- == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Expected-03[Expected<void>] visitFile(std::string_view fileName) = 0; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ArrayTypeInfo final : link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Array>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Array>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ArrayTypeInfo-operator_3way-03[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-ArrayTypeInfo-isArray[`isArray`] | link:#clang-mrdocs-ArrayTypeInfo-isAuto[`isAuto`] | link:#clang-mrdocs-ArrayTypeInfo-isDecltype[`isDecltype`] | link:#clang-mrdocs-ArrayTypeInfo-isFunction[`isFunction`] | link:#clang-mrdocs-ArrayTypeInfo-isLValueReference[`isLValueReference`] | link:#clang-mrdocs-ArrayTypeInfo-isMemberPointer[`isMemberPointer`] | link:#clang-mrdocs-ArrayTypeInfo-isNamed[`isNamed`] | link:#clang-mrdocs-ArrayTypeInfo-isPointer[`isPointer`] | link:#clang-mrdocs-ArrayTypeInfo-isRValueReference[`isRValueReference`] |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-ArrayTypeInfo-Bounds[`Bounds`] | link:#clang-mrdocs-ArrayTypeInfo-ElementType[`ElementType`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-ArrayTypeInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-innerType-0f5[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerType-0f7[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0c[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0d[`innerTypePtr`] | Return the inner type. |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-ArrayTypeInfo-operator_3way-06[operator<=>](link:#clang-mrdocs-ArrayTypeInfo[ArrayTypeInfo] const& rhs) const; ---- [.small]#link:#clang-mrdocs-ArrayTypeInfo-operator_3way-06[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-ArrayTypeInfo-operator_3way-00[operator<=>](link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Array>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-ArrayTypeInfo-operator_3way-00[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-ArrayTypeInfo[ArrayTypeInfo] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Array>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isArray() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isAuto() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isDecltype() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isLValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isMemberPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamed() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ConstantExprInfo[ConstantExprInfo<uint64_t>] Bounds; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] ElementType = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TypeKind[TypeKind] kind_id; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct AutoTypeInfo final : link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Auto>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Auto>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-AutoTypeInfo-operator_3way-01[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-AutoTypeInfo-isArray[`isArray`] | link:#clang-mrdocs-AutoTypeInfo-isAuto[`isAuto`] | link:#clang-mrdocs-AutoTypeInfo-isDecltype[`isDecltype`] | link:#clang-mrdocs-AutoTypeInfo-isFunction[`isFunction`] | link:#clang-mrdocs-AutoTypeInfo-isLValueReference[`isLValueReference`] | link:#clang-mrdocs-AutoTypeInfo-isMemberPointer[`isMemberPointer`] | link:#clang-mrdocs-AutoTypeInfo-isNamed[`isNamed`] | link:#clang-mrdocs-AutoTypeInfo-isPointer[`isPointer`] | link:#clang-mrdocs-AutoTypeInfo-isRValueReference[`isRValueReference`] |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-AutoTypeInfo-Constraint[`Constraint`] | link:#clang-mrdocs-AutoTypeInfo-Keyword[`Keyword`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-AutoTypeInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-innerType-0f5[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerType-0f7[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0c[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0d[`innerTypePtr`] | Return the inner type. |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-AutoTypeInfo-operator_3way-08[operator<=>](link:#clang-mrdocs-AutoTypeInfo[AutoTypeInfo] const& rhs) const; ---- [.small]#link:#clang-mrdocs-AutoTypeInfo-operator_3way-08[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-AutoTypeInfo-operator_3way-0d[operator<=>](link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Auto>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-AutoTypeInfo-operator_3way-0d[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-AutoTypeInfo[AutoTypeInfo] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Auto>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isArray() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isAuto() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isDecltype() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isLValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isMemberPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamed() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] Constraint = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-AutoKind[AutoKind] Keyword = AutoKind::Auto; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TypeKind[TypeKind] kind_id; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class E> class BadExpectedAccess : public link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-BadExpectedAccess-0d-2constructor[`BadExpectedAccess`] [.small]#[constructor]# | Construct from `E` | link:#clang-mrdocs-BadExpectedAccess-01-operator_assign-09[`operator=`] | | link:#clang-mrdocs-BadExpectedAccess-0d-error-08[`error`] | | link:#clang-mrdocs-BadExpectedAccess-01-what[`what`] [.small]#[virtual]# | |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-BadExpectedAccess-01-operator_assign-0cc[`operator=`] | Assignment operators |=== Construct from `E` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit BadExpectedAccess(E e); ---- == Parameters [cols=2] |=== | Name | Description | *e* | The object to construct from |=== == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] E& link:#clang-mrdocs-BadExpectedAccess-0d-error-0c[error]() & noexcept; ---- [.small]#link:#clang-mrdocs-BadExpectedAccess-0d-error-0c[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] E const& link:#clang-mrdocs-BadExpectedAccess-0d-error-00[error]() const & noexcept; ---- [.small]#link:#clang-mrdocs-BadExpectedAccess-0d-error-00[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] E&& link:#clang-mrdocs-BadExpectedAccess-0d-error-0f[error]() && noexcept; ---- [.small]#link:#clang-mrdocs-BadExpectedAccess-0d-error-0f[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] E const&& link:#clang-mrdocs-BadExpectedAccess-0d-error-02[error]() const && noexcept; ---- [.small]#link:#clang-mrdocs-BadExpectedAccess-0d-error-02[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] E& error() & noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] E const& error() const & noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] E&& error() && noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] E const&& error() const && noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<> class link:#clang-mrdocs-BadExpectedAccess-0d[BadExpectedAccess]<void> : public std::exception ---- == Base Classes [cols=2] |=== | Name | Description | `std::exception` | |=== == Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-BadExpectedAccess-01-operator_assign-09[`operator=`] | link:#clang-mrdocs-BadExpectedAccess-01-what[`what`] [.small]#[virtual]# |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-BadExpectedAccess-01-2constructor-05[`BadExpectedAccess`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-BadExpectedAccess-01-2destructor[`~BadExpectedAccess`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-BadExpectedAccess-01-operator_assign-0cc[`operator=`] | Assignment operators |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-BadExpectedAccess-0d[`BadExpectedAccess`] | |=== == Synopsis Declared in `<__exception/exception.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]] constexpr exception& operator=(exception const& value) noexcept = default; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] virtual char const* what() const noexcept override; ---- Constructors == Synopses Declared in `<mrdocs/Support/Expected.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-BadExpectedAccess-01-2constructor-082[BadExpectedAccess]() noexcept = default; ---- [.small]#link:#clang-mrdocs-BadExpectedAccess-01-2constructor-082[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-BadExpectedAccess-01-2constructor-0c[BadExpectedAccess](link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>] const& other) = default; ---- [.small]#link:#clang-mrdocs-BadExpectedAccess-01-2constructor-0c[_» more..._]# Move constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-BadExpectedAccess-01-2constructor-081[BadExpectedAccess](link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>]&& other) = default; ---- [.small]#link:#clang-mrdocs-BadExpectedAccess-01-2constructor-081[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr BadExpectedAccess() noexcept = default; ---- Copy constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr BadExpectedAccess(link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>] const& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Move constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr BadExpectedAccess(link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>]&& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Destructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr virtual ~BadExpectedAccess() override = default; ---- Assignment operators == Synopses Declared in `<mrdocs/Support/Expected.hpp>` Copy assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>]& link:#clang-mrdocs-BadExpectedAccess-01-operator_assign-0c1[operator=](link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>] const& other) = default; ---- [.small]#link:#clang-mrdocs-BadExpectedAccess-01-operator_assign-0c1[_» more..._]# Move assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>]& link:#clang-mrdocs-BadExpectedAccess-01-operator_assign-0d[operator=](link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>]&& other) = default; ---- [.small]#link:#clang-mrdocs-BadExpectedAccess-01-operator_assign-0d[_» more..._]# Copy assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>]& operator=(link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>] const& other) = default; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Move assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>]& operator=(link:#clang-mrdocs-BadExpectedAccess-01[BadExpectedAccess<void>]&& other) = default; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to move assign from |=== Metadata for a direct base. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct BaseInfo; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-BaseInfo-2constructor-0e[`BaseInfo`] [.small]#[constructor]# | Constructors |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-BaseInfo-Access[`Access`] | link:#clang-mrdocs-BaseInfo-IsVirtual[`IsVirtual`] | link:#clang-mrdocs-BaseInfo-Type[`Type`] |=== Constructors == Synopses Declared in `<mrdocs/Metadata/Info/Record.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-BaseInfo-2constructor-04[BaseInfo]() = default; ---- [.small]#link:#clang-mrdocs-BaseInfo-2constructor-04[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-BaseInfo-2constructor-0c[BaseInfo]( link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>]&& type, link:#clang-mrdocs-AccessKind[AccessKind] const access, bool const is_virtual); ---- [.small]#link:#clang-mrdocs-BaseInfo-2constructor-0c[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr BaseInfo() = default; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- BaseInfo( link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>]&& type, link:#clang-mrdocs-AccessKind[AccessKind] const access, bool const is_virtual); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-AccessKind[AccessKind] Access = AccessKind::Public; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsVirtual = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] Type; ---- Info for concepts. == Synopsis Declared in `<mrdocs/Metadata/Info/Concept.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ConceptInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Concept>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Concept>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ConceptInfo-2constructor[`ConceptInfo`] [.small]#[constructor]# | Construct from `SymbolID` | link:#clang-mrdocs-ConceptInfo-operator_3way-0f[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-ConceptInfo-isConcept[`isConcept`] | link:#clang-mrdocs-ConceptInfo-isEnum[`isEnum`] | link:#clang-mrdocs-ConceptInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-ConceptInfo-isFunction[`isFunction`] | link:#clang-mrdocs-ConceptInfo-isGuide[`isGuide`] | link:#clang-mrdocs-ConceptInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-ConceptInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-ConceptInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-ConceptInfo-isRecord[`isRecord`] | link:#clang-mrdocs-ConceptInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-ConceptInfo-isUsing[`isUsing`] | link:#clang-mrdocs-ConceptInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-ConceptInfo-Constraint[`Constraint`] | The concepts constraint‐expression | link:#clang-mrdocs-ConceptInfo-Template[`Template`] | The concepts template parameters |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-ConceptInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/Concept.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit ConceptInfo(link:#clang-mrdocs-SymbolID[SymbolID] const& ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to copy construct from |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Info/Concept.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-ConceptInfo-operator_3way-0d[operator<=>](link:#clang-mrdocs-ConceptInfo[ConceptInfo] const& other) const; ---- [.small]#link:#clang-mrdocs-ConceptInfo-operator_3way-0d[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-ConceptInfo-operator_3way-01[operator<=>](link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Concept>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-ConceptInfo-operator_3way-01[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info/Concept.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-ConceptInfo[ConceptInfo] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Concept>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- The concepts constraint‐expression == Synopsis Declared in `<mrdocs/Metadata/Info/Concept.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ExprInfo[ExprInfo] Constraint; ---- The concepts template parameters == Synopsis Declared in `<mrdocs/Metadata/Info/Concept.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<TemplateInfo> Template; ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- Configuration used to generate the Corpus and Docs == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Config; ---- == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-Config-Settings[`Settings`] | Settings values used to generate the Corpus and Docs |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Config-2destructor[`~Config`] [.small]#[destructor]# [.small]#[virtual]# | Destructor. | link:#clang-mrdocs-Config-object[`object`] [.small]#[virtual]# | Return a DOM object representing the configuration keys. | link:#clang-mrdocs-Config-operator_ptr[`operator‐>`] | Return the settings used to generate the Corpus and Docs. | link:#clang-mrdocs-Config-settings[`settings`] [.small]#[virtual]# | Return the settings used to generate the Corpus and Docs. | link:#clang-mrdocs-Config-threadPool[`threadPool`] [.small]#[virtual]# | Return a pool of threads for executing work. |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Config-2constructor[`Config`] [.small]#[constructor]# | Default constructor |=== == Description This contains all the public settings applied from the command line and the YML file (if any). This class stores the original and public config options as they are passed to MrDocs, in their original data types, such as strings and bools. This class is an abstract interface whose private concrete implementation typically includes these parsed configuration values in a more convenient form for use by MrDocs. Meanwhile, this class is provided publicly to plugins. The configuration is always connected to the directory of the mrdocs.yml file from which absolute paths are calculated from relative paths. Settings values used to generate the Corpus and Docs == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Settings : PublicSettings ---- == Base Classes [cols=2] |=== | Name | Description | `PublicSettings` | |=== == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-Config-Settings-OptionProperties[`OptionProperties`] | Option validation traits |=== == Enums [cols=2] |=== | Name | Description | link:#clang-mrdocs-Config-Settings-BaseMemberInheritance[`BaseMemberInheritance`] | Enum for "base‐member‐inheritance" options | link:#clang-mrdocs-Config-Settings-Generator[`Generator`] | Enum for "generator" options | link:#clang-mrdocs-Config-Settings-LogLevel[`LogLevel`] | Enum for "log‐level" options | link:#clang-mrdocs-Config-Settings-OptionType[`OptionType`] | Option Type | link:#clang-mrdocs-Config-Settings-SortSymbolBy[`SortSymbolBy`] | Enum for "sort‐symbol‐by" options |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Config-Settings-configDir[`configDir`] | Full path to the config file directory | link:#clang-mrdocs-Config-Settings-normalize-06[`normalize`] | Normalize the configuration values with a visitor | link:#clang-mrdocs-Config-Settings-operator_ptr[`operator‐>`] | Member access operator | link:#clang-mrdocs-Config-Settings-outputDir[`outputDir`] | Full path to the output directory | link:#clang-mrdocs-Config-Settings-visit-00[`visit`] | Visit all options |=== == Static Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Config-Settings-fromString-0c[`fromString`] | | link:#clang-mrdocs-Config-Settings-load-07a[`load`] | `load` overloads | link:#clang-mrdocs-Config-Settings-load_file[`load_file`] | Loads the public configuration settings from the specified file. | link:#clang-mrdocs-Config-Settings-toString-0e[`toString`] | |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-Config-Settings-addons[`addons`] | Path to the Addons directory | link:#clang-mrdocs-Config-Settings-autoBrief[`autoBrief`] | command is required. | link:#clang-mrdocs-Config-Settings-autoFunctionMetadata[`autoFunctionMetadata`] | Automatically provide missing documentation for special functions and trivial metadata | link:#clang-mrdocs-Config-Settings-autoRelates[`autoRelates`] | Automatically find non‐member functions | link:#clang-mrdocs-Config-Settings-baseUrl[`baseUrl`] | Base URL for links to source code | link:#clang-mrdocs-Config-Settings-cmake[`cmake`] | CMake arguments when generating the compilation database from CMakeLists.txt | link:#clang-mrdocs-Config-Settings-cmdLineInputs[`cmdLineInputs`] | Configuration or compilation database files | link:#clang-mrdocs-Config-Settings-compilationDatabase[`compilationDatabase`] | Path to the compilation database | link:#clang-mrdocs-Config-Settings-concurrency[`concurrency`] | Number of threads to use | link:#clang-mrdocs-Config-Settings-config[`config`] | Mr.Docs configuration file | link:#clang-mrdocs-Config-Settings-configYaml[`configYaml`] | A string holding the complete configuration YAML. | link:#clang-mrdocs-Config-Settings-cwdDir[`cwdDir`] | Full path to the current working directory | link:#clang-mrdocs-Config-Settings-defines[`defines`] | Additional defines passed to the compiler | link:#clang-mrdocs-Config-Settings-embedded[`embedded`] | Output an embeddable document | link:#clang-mrdocs-Config-Settings-exclude[`exclude`] | Input directories to exclude | link:#clang-mrdocs-Config-Settings-excludePatterns[`excludePatterns`] | File patterns to exclude | link:#clang-mrdocs-Config-Settings-excludeSymbols[`excludeSymbols`] | Symbol patterns to exclude | link:#clang-mrdocs-Config-Settings-extractAll[`extractAll`] | Extract all symbols | link:#clang-mrdocs-Config-Settings-extractAnonymousNamespaces[`extractAnonymousNamespaces`] | Extraction policy for anonymous namespaces | link:#clang-mrdocs-Config-Settings-extractEmptyNamespaces[`extractEmptyNamespaces`] | Extraction policy for empty namespaces | link:#clang-mrdocs-Config-Settings-extractFriends[`extractFriends`] | Extraction policy for friend functions and classes | link:#clang-mrdocs-Config-Settings-extractImplicitSpecializations[`extractImplicitSpecializations`] | Implicit template specializations used as base classes are extracted as dependencies | link:#clang-mrdocs-Config-Settings-extractLocalClasses[`extractLocalClasses`] | Extraction policy for records defined locally in source files | link:#clang-mrdocs-Config-Settings-extractPrivate[`extractPrivate`] | Extraction policy for private class members | link:#clang-mrdocs-Config-Settings-extractPrivateBases[`extractPrivateBases`] | Extraction policy for private base classes | link:#clang-mrdocs-Config-Settings-extractPrivateVirtual[`extractPrivateVirtual`] | Extraction policy for private virtual methods of a class | link:#clang-mrdocs-Config-Settings-extractStatic[`extractStatic`] | Extraction policy for static members of a file | link:#clang-mrdocs-Config-Settings-filePatterns[`filePatterns`] | File patterns to include | link:#clang-mrdocs-Config-Settings-generator[`generator`] | Generator used to create the documentation | link:#clang-mrdocs-Config-Settings-globalNamespaceIndex[`globalNamespaceIndex`] | Use the global namespace page as an index for all symbols | link:#clang-mrdocs-Config-Settings-ignoreFailures[`ignoreFailures`] | Whether AST visitation failures should not stop the program | link:#clang-mrdocs-Config-Settings-ignoreMapErrors[`ignoreMapErrors`] | Continue if files are not mapped correctly | link:#clang-mrdocs-Config-Settings-implementationDefined[`implementationDefined`] | Symbols rendered as "implementation‐defined" | link:#clang-mrdocs-Config-Settings-includeSymbols[`includeSymbols`] | Symbol patterns to include | link:#clang-mrdocs-Config-Settings-includes[`includes`] | Include paths | link:#clang-mrdocs-Config-Settings-inheritBaseMembers[`inheritBaseMembers`] | Determine how derived classes inherit base members | link:#clang-mrdocs-Config-Settings-input[`input`] | Input directories to extract symbols from | link:#clang-mrdocs-Config-Settings-legibleNames[`legibleNames`] | Use legible names | link:#clang-mrdocs-Config-Settings-libcIncludes[`libcIncludes`] | Standard Library include paths | link:#clang-mrdocs-Config-Settings-logLevel[`logLevel`] | The minimum reporting level | link:#clang-mrdocs-Config-Settings-missingIncludePrefixes[`missingIncludePrefixes`] | Include path prefixes allowed to be missing | link:#clang-mrdocs-Config-Settings-missingIncludeShims[`missingIncludeShims`] | Shims for forgiven missing include files | link:#clang-mrdocs-Config-Settings-mrdocsRootDir[`mrdocsRootDir`] | Full path to the mrdocs root directory | link:#clang-mrdocs-Config-Settings-multipage[`multipage`] | Generate a multipage documentation | link:#clang-mrdocs-Config-Settings-output[`output`] | Directory or file for generating output | link:#clang-mrdocs-Config-Settings-overloads[`overloads`] | Detect and group function overloads | link:#clang-mrdocs-Config-Settings-recursive[`recursive`] | Recursively include files from "input" paths | link:#clang-mrdocs-Config-Settings-report[`report`] | The minimum reporting level | link:#clang-mrdocs-Config-Settings-seeBelow[`seeBelow`] | Exposition only symbols rendered as "see‐below". | link:#clang-mrdocs-Config-Settings-sfinae[`sfinae`] | Detect and reduce SFINAE expressions | link:#clang-mrdocs-Config-Settings-showNamespaces[`showNamespaces`] | Show namespace pages in the documentation | link:#clang-mrdocs-Config-Settings-sortMembers[`sortMembers`] | Sort the members of a record | link:#clang-mrdocs-Config-Settings-sortMembersAssignment1St[`sortMembersAssignment1St`] | Sort assignment operators first | link:#clang-mrdocs-Config-Settings-sortMembersBy[`sortMembersBy`] | Determine how members of a record are sorted | link:#clang-mrdocs-Config-Settings-sortMembersConversionLast[`sortMembersConversionLast`] | Sort conversion operators last | link:#clang-mrdocs-Config-Settings-sortMembersCtors1St[`sortMembersCtors1St`] | Sort constructors first | link:#clang-mrdocs-Config-Settings-sortMembersDtors1St[`sortMembersDtors1St`] | Sort destructors first | link:#clang-mrdocs-Config-Settings-sortMembersRelationalLast[`sortMembersRelationalLast`] | Sort relational operators last | link:#clang-mrdocs-Config-Settings-sortNamespaceMembersBy[`sortNamespaceMembersBy`] | Determine how members of a namespace are sorted | link:#clang-mrdocs-Config-Settings-sourceRoot[`sourceRoot`] | Path to the root directory of the source code | link:#clang-mrdocs-Config-Settings-stdlibIncludes[`stdlibIncludes`] | C++ Standard Library include paths | link:#clang-mrdocs-Config-Settings-systemIncludes[`systemIncludes`] | System include paths | link:#clang-mrdocs-Config-Settings-tagfile[`tagfile`] | Path for the tagfile | link:#clang-mrdocs-Config-Settings-useSystemLibc[`useSystemLibc`] | Use the system C standard library | link:#clang-mrdocs-Config-Settings-useSystemStdlib[`useSystemStdlib`] | Use the system C++ standard library | link:#clang-mrdocs-Config-Settings-verbose[`verbose`] | Verbose output | link:#clang-mrdocs-Config-Settings-warnAsError[`warnAsError`] | Treat warnings as errors | link:#clang-mrdocs-Config-Settings-warnBrokenRef[`warnBrokenRef`] | Warn if a documentation reference is broken | link:#clang-mrdocs-Config-Settings-warnIfDocError[`warnIfDocError`] | Warn if documentation has errors | link:#clang-mrdocs-Config-Settings-warnIfUndocEnumVal[`warnIfUndocEnumVal`] | Warn if enum values are not documented | link:#clang-mrdocs-Config-Settings-warnIfUndocumented[`warnIfUndocumented`] | Warn if symbols are not documented | link:#clang-mrdocs-Config-Settings-warnNoParamdoc[`warnNoParamdoc`] | Warn if parameters are not documented | link:#clang-mrdocs-Config-Settings-warnUnnamedParam[`warnUnnamedParam`] | Warn if documented functions have unnamed parameters | link:#clang-mrdocs-Config-Settings-warnings[`warnings`] | Enable warning messages |=== == Friends [cols=2] |=== | Name | Description | `llvm::yaml::MappingTraits` | |=== Option validation traits == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct OptionProperties; ---- Enum for "base‐member‐inheritance" options == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class BaseMemberInheritance : int; ---- == Members [cols=2] |=== | Name | Description |=== == Description This enumeration value is valid for the `inherit‐base‐members` option Enum for "generator" options == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class Generator : int; ---- == Members [cols=2] |=== | Name | Description |=== == Description This enumeration value is valid for the `generator` option Enum for "log‐level" options == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class LogLevel : int; ---- == Members [cols=2] |=== | Name | Description |=== == Description This enumeration value is valid for the `log‐level` option Option Type == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class OptionType : int; ---- == Members [cols=2] |=== | Name | Description |=== Enum for "sort‐symbol‐by" options == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class SortSymbolBy : int; ---- == Members [cols=2] |=== | Name | Description |=== == Description These enumeration values are valid for the following options: ‐ sort‐members‐by ‐ sort‐namespace‐members‐by Full path to the config file directory == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string configDir() const; ---- == Description The reference directory for most MrDocs options is the directory of the mrdocs.yml file. It is used to calculate full paths from relative paths. This string will always be native style and have a trailing directory separator. == Return Value The full path to the config file directory. Normalize the configuration values with a visitor == Synopses Declared in `<mrdocs/Config.hpp>` Normalize the configuration values with a visitor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] link:#clang-mrdocs-Config-Settings-normalize-0c[normalize](link:#clang-mrdocs-ReferenceDirectories[ReferenceDirectories] const& dirs); ---- [.small]#link:#clang-mrdocs-Config-Settings-normalize-0c[_» more..._]# Normalize the configuration values with a visitor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> link:#clang-mrdocs-Expected-03[Expected<void>] link:#clang-mrdocs-Config-Settings-normalize-09[normalize]( link:#clang-mrdocs-ReferenceDirectories[ReferenceDirectories] const& dirs, F&& f); ---- [.small]#link:#clang-mrdocs-Config-Settings-normalize-09[_» more..._]# == Return Value Expected<void> with the error if any == Parameters [cols=2] |=== | Name | Description | *dirs* | The reference directories to resolve paths | *f* | The visitor |=== Normalize the configuration values with a visitor == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] normalize(link:#clang-mrdocs-ReferenceDirectories[ReferenceDirectories] const& dirs); ---- == Description This function normalizes and validates the configuration values. == Return Value Expected<void> with the error if any == Parameters [cols=2] |=== | Name | Description | *dirs* | The reference directories to resolve paths |=== Normalize the configuration values with a visitor == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> link:#clang-mrdocs-Expected-03[Expected<void>] normalize( link:#clang-mrdocs-ReferenceDirectories[ReferenceDirectories] const& dirs, F&& f); ---- == Description This function normalizes and validates the configuration values. == Return Value Expected<void> with the error if any == Parameters [cols=2] |=== | Name | Description | *dirs* | The reference directories to resolve paths | *f* | The visitor |=== Member access operator == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Config-Settings[Settings] const* operator‐>() const noexcept; ---- == Return Value Pointer to the current object Full path to the output directory == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string outputDir() const; ---- == Description The reference directory for MrDocs output and temporary files is the output directory. This is either the output option (if already a directory) or the parent directory of the output option (if it is a file). When the output option is a path that does not exist, we determine if it's a file or directory by checking if the filename contains a period. This string will always be native style and have a trailing directory separator. == Return Value The full path to the output directory. Visit all options == Synopses Declared in `<mrdocs/PublicSettings.hpp>` Visit all options [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> void link:#clang-mrdocs-Config-Settings-visit-0a[visit](F&& f) const; ---- [.small]#link:#clang-mrdocs-Config-Settings-visit-0a[_» more..._]# Visit all options [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> void link:#clang-mrdocs-Config-Settings-visit-0e[visit](F&& f); ---- [.small]#link:#clang-mrdocs-Config-Settings-visit-0e[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *f* | The visitor |=== Visit all options == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> void visit(F&& f) const; ---- == Parameters [cols=2] |=== | Name | Description | *f* | The visitor |=== Visit all options == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> void visit(F&& f); ---- == Parameters [cols=2] |=== | Name | Description | *f* | The visitor |=== == Synopses Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool link:#clang-mrdocs-Config-Settings-fromString-07[fromString]( std::string_view const str, BaseMemberInheritance& e); ---- [.small]#link:#clang-mrdocs-Config-Settings-fromString-07[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool link:#clang-mrdocs-Config-Settings-fromString-03[fromString]( std::string_view const str, Generator& e); ---- [.small]#link:#clang-mrdocs-Config-Settings-fromString-03[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool link:#clang-mrdocs-Config-Settings-fromString-08[fromString]( std::string_view const str, LogLevel& e); ---- [.small]#link:#clang-mrdocs-Config-Settings-fromString-08[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool link:#clang-mrdocs-Config-Settings-fromString-01[fromString]( std::string_view const str, SortSymbolBy& e); ---- [.small]#link:#clang-mrdocs-Config-Settings-fromString-01[_» more..._]# == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool fromString( std::string_view const str, BaseMemberInheritance& e); ---- == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool fromString( std::string_view const str, Generator& e); ---- == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool fromString( std::string_view const str, LogLevel& e); ---- == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool fromString( std::string_view const str, SortSymbolBy& e); ---- `load` overloads == Synopses Declared in `<mrdocs/PublicSettings.hpp>` Load the configuration from a YAML string [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<void>] link:#clang-mrdocs-Config-Settings-load-01[load]( PublicSettings& s, std::string_view configYaml); ---- [.small]#link:#clang-mrdocs-Config-Settings-load-01[_» more..._]# Loads the public configuration settings from the specified YAML file. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<void>] link:#clang-mrdocs-Config-Settings-load-078[load]( link:#clang-mrdocs-Config-Settings[Config::Settings]& s, std::string_view configYaml, link:#clang-mrdocs-ReferenceDirectories[ReferenceDirectories] const& dirs); ---- [.small]#link:#clang-mrdocs-Config-Settings-load-078[_» more..._]# == Return Value * Expected<void> with the error if any * An Expected object containing a Config::Settings object if the YAML file was successfully parsed and the configuration settings were loaded, or an error otherwise. == Parameters [cols=2] |=== | Name | Description | *s* | The PublicSettings object to load the configuration into | *configYaml* | The YAML string with the configuration | *dirs* | A constant reference to a PublicSettings::ReferenceDirectories object containing the reference directories. |=== Load the configuration from a YAML string == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<void>] load( PublicSettings& s, std::string_view configYaml); ---- == Description This function loads the values from the YAML string without normalizing or validating them. After calling this function, call `normalize` to normalize and validate the options. == Return Value Expected<void> with the error if any == Parameters [cols=2] |=== | Name | Description | *s* | The PublicSettings object to load the configuration into | *configYaml* | The YAML string with the configuration |=== Loads the public configuration settings from the specified YAML file. == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<void>] load( link:#clang-mrdocs-Config-Settings[Config::Settings]& s, std::string_view configYaml, link:#clang-mrdocs-ReferenceDirectories[ReferenceDirectories] const& dirs); ---- == Description This function takes a YAML file and a set of reference directories as input. It parses the YAML file and loads the configuration settings into a Config::Settings object. The reference directories are used to resolve any relative paths in the configuration settings. == Return Value An Expected object containing a Config::Settings object if the YAML file was successfully parsed and the configuration settings were loaded, or an error otherwise. == Parameters [cols=2] |=== | Name | Description | *s* | A reference to a Config::Settings object where the configuration settings will be loaded. | *configYaml* | A string view representing the YAML file containing the configuration settings. | *dirs* | A constant reference to a PublicSettings::ReferenceDirectories object containing the reference directories. |=== Loads the public configuration settings from the specified file. == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<void>] load_file( link:#clang-mrdocs-Config-Settings[Config::Settings]& s, std::string_view configPath, link:#clang-mrdocs-ReferenceDirectories[ReferenceDirectories] const& dirs); ---- == Description This function takes a file path and a set of reference directories as input. It reads the file and loads the configuration settings into a Config::Settings object. The reference directories are used to resolve any relative paths in the configuration settings. == Return Value An Expected object containing void if the file was successfully read and the configuration settings were loaded, or an error otherwise. == Parameters [cols=2] |=== | Name | Description | *s* | A reference to a Config::Settings object where the configuration settings will be loaded. | *configPath* | A string view representing the file path of the configuration settings. | *dirs* | A constant reference to a PublicSettings::ReferenceDirectories object containing the reference directories. |=== == Synopses Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static std::string_view link:#clang-mrdocs-Config-Settings-toString-08f[toString](BaseMemberInheritance const e); ---- [.small]#link:#clang-mrdocs-Config-Settings-toString-08f[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static std::string_view link:#clang-mrdocs-Config-Settings-toString-01f[toString](Generator const e); ---- [.small]#link:#clang-mrdocs-Config-Settings-toString-01f[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static std::string_view link:#clang-mrdocs-Config-Settings-toString-08c[toString](LogLevel const e); ---- [.small]#link:#clang-mrdocs-Config-Settings-toString-08c[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static std::string_view link:#clang-mrdocs-Config-Settings-toString-019[toString](SortSymbolBy const e); ---- [.small]#link:#clang-mrdocs-Config-Settings-toString-019[_» more..._]# == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static std::string_view toString(BaseMemberInheritance const e); ---- == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static std::string_view toString(Generator const e); ---- == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static std::string_view toString(LogLevel const e); ---- == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static std::string_view toString(SortSymbolBy const e); ---- Path to the Addons directory == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string addons; ---- == Description Path to the Addons directory. The Addons directory contains the template files used by generators to create the documentation. When a custom Addons directory is not specified, the default templates are used. The default templates are located at the `share/mrdocs/addons` directory of the MrDocs installation. Users can create custom templates by copying the default templates to a custom directory and specifying the custom directory using this option. command is required. == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool autoBrief = true; ---- == Description Use the first line of the comment as the brief When set to `true`, Mr.Docs uses the first line (until the first dot, question mark, or exclamation mark) of the comment as the brief of the symbol. When set to `false`, a explicit Automatically provide missing documentation for special functions and trivial metadata == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool autoFunctionMetadata = true; ---- == Description When set to `true`, Mr.Docs automatically provides documentation for special functions, such as constructors, destructors, and operators. It also provides documentation for missing documentation metadata, such as known types. Automatically find non‐member functions == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool autoRelates = true; ---- == Description When set to `true`, Mr.Docs automatically finds non‐member functions that are related to the current class. Base URL for links to source code == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string baseUrl; ---- == Description Base URL for links to source code. The base URL is used to create links to the source code in the documentation. The base URL is combined with the path to the source file to create the link. CMake arguments when generating the compilation database from CMakeLists.txt == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string cmake; ---- == Description When the compilation‐database option is a CMakeLists.txt file, these arguments are passed to the cmake command to generate the compilation_database.json. Configuration or compilation database files == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> cmdLineInputs; ---- == Description The inputs are configuration files or compilation database files that used to generate the documentation. When the input ends with `mrdocs.yml`, it is interpreted as a configuration file, the file is read and the options are used to generate the documentation as if it was provided to the `config` option. When the input ends with `compilation_database.json` or `CMakeLists.txt`, it is interpreted as a compilation database file, the file is read and the compiler flags are used to generate the documentation as if it was provided to the `compilation‐database` option. Path to the compilation database == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string compilationDatabase; ---- == Description Path to the compilation database or a build script to generate it. The compilation database is a JSON file that contains the compiler commands used to build the source code. The compilation database is used to extract the compiler flags and the source files used to build the source code and extract symbols. This option also accepts the path to a build script such as CMakeLists.txt to be used to generate the compilation database. In this case, Mr.Docs will look for CMake in `PATH` or in `CMAKE_ROOT` and run the script to generate the compilation database file. Number of threads to use == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- unsigned int concurrency = 0; ---- == Description The desired level of concurrency: 0 for hardware‐suggested. Mr.Docs configuration file == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string config; ---- == Description The configuration file is a YAML file that contains the options used to generate the documentation. The configuration file is read and the options are used to generate the documentation. The configuration file can be used to specify the source code, the output directory, the compilation database, the generator, and the filters. A string holding the complete configuration YAML. == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string configYaml; ---- Full path to the current working directory == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string cwdDir = "."; ---- == Description This string will always be native style and have a trailing directory separator. Additional defines passed to the compiler == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> defines; ---- == Description Additional defines passed to the compiler when building the source code. These defines are added to the compilation database regardless of the strategy to generate it. Output an embeddable document == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool embedded = false; ---- == Description Output an embeddable document, which excludes the header, the footer, and everything outside the body of the document. This option is useful for producing documents that can be inserted into an external template. Input directories to exclude == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> exclude; ---- == Description Symbols defined in files in these directories are not extracted even if they are in the list of include directories. When relative, the paths are relative to the directory of the mrdocs configuration file. For instance, "include/experimental" will exclude all files in the directory `<config‐dir>/include/experimental`. File patterns to exclude == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<PathGlobPattern> excludePatterns; ---- == Description File patterns to exclude. Files that match these patterns are not extracted even if they are in the list of include directories. The patterns are relative to the configuration file. A single will match all files in the directory. Double will match all files in the directory and its subdirectories. Symbol patterns to exclude == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolGlobPattern> excludeSymbols; ---- == Description A symbol that matches one of these patterns is not extracted even if whitelisted by "include‐symbols". See the documentation for "include‐symbols" for the pattern syntax. Extract all symbols == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool extractAll = true; ---- == Description When set to `true`, MrDocs extracts all symbols from the source code, even if no documentation is provided. MrDocs can only identify whether a symbol is ultimated documented after extracting information from all translation units. For this reason, when this option is set to `false`, it's still recommendable to provide file and symbol filters so that only the desired symbols are traversed and stored by MrDocs. Extraction policy for anonymous namespaces == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool extractAnonymousNamespaces = true; ---- == Description Determine whether symbols in anonymous namespaces should be extracted. Extraction policy for empty namespaces == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool extractEmptyNamespaces = false; ---- == Description Determine whether empty namespaces without documentation should be extracted. Extraction policy for friend functions and classes == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool extractFriends = true; ---- == Description Determine whether friend functions and classes should be extracted. When set to `true`, MrDocs extracts friend functions and classes. When set to `false`, friend functions and classes are not extracted. Implicit template specializations used as base classes are extracted as dependencies == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool extractImplicitSpecializations = true; ---- == Description When set to `true`, MrDocs extracts implicit template specializations used as base classes as dependencies. This allows MrDocs to extract metadata that can later be used to determine the members of the derived class, as specified by the `inherit‐base‐members` option. Extraction policy for records defined locally in source files == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool extractLocalClasses = true; ---- == Description Determine whether records only defined locally in source files should be extracted. Extraction policy for private class members == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool extractPrivate = false; ---- == Description Determine whether private class members should be extracted Extraction policy for private base classes == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool extractPrivateBases = false; ---- == Description Determine whether private base classes should be extracted Extraction policy for private virtual methods of a class == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool extractPrivateVirtual = false; ---- == Description Determine whether private virtual methods of a class should be extracted Extraction policy for static members of a file == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool extractStatic = false; ---- == Description Determine whether static members of a file should be extracted. This option does not refer to static members of a class. File patterns to include == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<PathGlobPattern> filePatterns; ---- == Description File patterns to include. Only the files that match these patterns are extracted. The patterns are relative to the input directories. Generator used to create the documentation == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Generator generator = Generator::Adoc; ---- == Description The generator is responsible for creating the documentation from the extracted symbols. The generator uses the extracted symbols and the templates to create the documentation. The generator can create different types of documentation such as HTML, XML, and AsciiDoc. Use the global namespace page as an index for all symbols == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool globalNamespaceIndex = true; ---- == Description When set to true, the page for the global namespace will recursively list all symbols in the documentation, not just those in the global namespace. This makes the global namespace page act as an index for the entire project. Whether AST visitation failures should not stop the program == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool ignoreFailures = false; ---- == Description When set to true, MrDocs continues to generate the documentation even if there are AST visitation failures. AST visitation failures occur when the source code contains constructs that are not supported by MrDocs. Continue if files are not mapped correctly == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool ignoreMapErrors = false; ---- == Description When set to true, MrDocs continues to generate the documentation even if some files are not mapped correctly. Files are not mapped correctly when the source file is not found or the compilation database does not contain the compiler flags for the source file. Symbols rendered as "implementation‐defined" == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolGlobPattern> implementationDefined; ---- == Description Symbols that match one of these filters are tagged as "implementation‐defined" in the documentation, and so do symbols in scopes tagged as "implementation‐defined". This option is used to exclude symbols from the documentation that are considered part of the private API of the project. An "implementation‐defined" symbol has no documentation page in the output. If any other symbol refers to it, the reference is rendered as "implementation‐defined". See the documentation for "include‐symbol" for the pattern syntax. Symbol patterns to include == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolGlobPattern> includeSymbols; ---- == Description If any patterns are defined here, only symbols that match one of these patterns are extracted. The patterns are applied to the fully qualified name of the symbol without any leading "::". A single "" will match all symbols in the namespace. Double "" will match all symbols in the namespace and its subnamespaces. The patterns also support "?" for any chars, "[<chars>]" for charsets, "[ˆ<chars>]" for inverted charsets, and "{<glob>,...}" for alternatives. Include paths == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> includes; ---- == Description Include paths. These paths are used to add directories to the include search path. The include search path is used to search for headers. The headers are used to provide declarations and definitions of symbols. The headers are part of the project and are checked for warnings and errors. Determine how derived classes inherit base members == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- BaseMemberInheritance inheritBaseMembers = BaseMemberInheritance::CopyDependencies; ---- == Description Determine how derived classes inherit members of base classes. When set to `never`, derived classes do not inherit members of base classes and only the relationship is stored. When set to `reference`, derived classes list members of base classes but references are still linked to the base class. When set to `copy‐dependencies`, a reference is created by default and a copy is created when the base class is a dependency. When set to `copy‐all`, a copy is created for each base symbol as if it was declared in the derived class. If the base class is a dependency, the extraction mode is copied from the new parent. Input directories to extract symbols from == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> input; ---- == Description Input directories to extract. Only symbols defined in files in these directories are extracted. The paths are relative to the mrdocs configuration file. Use legible names == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool legibleNames = true; ---- == Description Use legible names for ids in the documentation. When set to true, MrDocs uses legible names for symbols in the documentation. These are symbols that are legible but still safe for URLs. When the option is set to false, MrDocs uses a hash of the symbol ID. Standard Library include paths == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> libcIncludes; ---- == Description When `use‐system‐libc` is disabled, the C standard library headers are available in these paths. The minimum reporting level == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- LogLevel logLevel = LogLevel::Info; ---- == Description The reporting level determines the amount of information displayed during the generation of the documentation. Include path prefixes allowed to be missing == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> missingIncludePrefixes; ---- == Description Specifies path prefixes for include files that, if missing, will not cause documentation generation to fail. Missing files with these prefixes are served as empty files from an in‐memory file system, allowing processing to continue. For example, use "llvm/" to forgive all includes from LLVM. If any such path is specified, MrDocs will attempt to synthesize missing included types. Only simple sets of non‐conflicting inferred types can be synthesized. For more complex types or for better control, provide a shim using the "missing‐include‐shims" option. Shims for forgiven missing include files == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::map<std::string, std::string> missingIncludeShims; ---- == Description Specifies a map of include file paths to shim contents. If a missing include file matches a forgiven prefix, MrDocs will use the shim content from this map as the file contents. If no shim is provided for a forgiven file, an empty file is used by default. Full path to the mrdocs root directory == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string mrdocsRootDir; ---- == Description This is the directory containing the mrdocs executable and the shared files. This string will always be native style and have a trailing directory separator. Generate a multipage documentation == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool multipage = true; ---- == Description Generates a multipage documentation. The output directory must be a directory. This option acts as a hint to the generator to create a multipage documentation. Whether the hint is followed or not depends on the generator. Directory or file for generating output == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string output; ---- == Description Multipage generators expect a directory. Single page generators expect a file or a directory where the file will be created. If the directory does not exist, it will be created. Detect and group function overloads == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool overloads = true; ---- == Description When set to `true`, MrDocs detects function overloads and groups them as a single symbol type. The documentation for this new symbol comes from the union of non‐ambiguous metadata from the functions. Recursively include files from "input" paths == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool recursive = true; ---- == Description Recursively include files. When set to true, Mr.Docs includes files in subdirectories of the input directories. When set to false, Mr.Docs includes only the files in the input directories. The minimum reporting level == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- unsigned int report = ‐1; ---- == Description The reporting level determines the amount of information displayed during the generation of the documentation. The value `‐1` delegates the decision to the `log‐level` option. Exposition only symbols rendered as "see‐below". == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolGlobPattern> seeBelow; ---- == Description Symbols that match one of these filters are tagged as "see‐below" in the documentation, and so do symbols in scopes tagged as "see‐below". This option is used to remove details about symbols that are considered part of the private API of the project but the user might need to interact with. In the documentation page for this symbol, the symbol is exposition only: the synopsis of the implementation is rendered as "see‐below" and members of scopes (such as a namespace or record) are not listed. The rest of the documentation is rendered as usual to explain the symbol. See the documentation for "include‐symbol" for the pattern syntax. Detect and reduce SFINAE expressions == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool sfinae = true; ---- == Description When set to true, MrDocs detects SFINAE expressions in the source code and extracts them as part of the documentation. Expressions such as `std::enable_if<...>` are detected, removed, and documented as a requirement. MrDocs uses an algorithm that extracts SFINAE infomation from types by identifying inspecting the primary template and specializations to detect the result type and the controlling expressions in a specialization. Show namespace pages in the documentation == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool showNamespaces = true; ---- == Description When set to true, MrDocs creates a page for each namespace in the documentation. Sort the members of a record == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool sortMembers = true; ---- == Description When set to `true`, sort the members of a record by the criterion determined in the `sort‐members‐by` option. When set to `false`, the members are included in the declaration order they are extracted. Sort assignment operators first == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool sortMembersAssignment1St = true; ---- == Description When set to `true`, assignment operators are sorted first in the list of members of a record. Determine how members of a record are sorted == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- SortSymbolBy sortMembersBy = SortSymbolBy::Name; ---- == Description If `sort‐members` is set to `true`, determine how members of a record are sorted. When set to `name`, members are sorted by name. When set to `location`, members are sorted by their primary location in the source code, considering the short name of the path and the location in the file. Sort conversion operators last == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool sortMembersConversionLast = true; ---- == Description When set to `true`, conversion operators are sorted last in the list of members of a record or namespace. Sort constructors first == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool sortMembersCtors1St = true; ---- == Description When set to `true`, constructors are sorted first in the list of members of a record. Sort destructors first == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool sortMembersDtors1St = true; ---- == Description When set to `true`, destructors are sorted first in the list of members of a record. Sort relational operators last == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool sortMembersRelationalLast = true; ---- == Description When set to `true`, relational operators are sorted last in the list of members of a record or namespace. Determine how members of a namespace are sorted == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- SortSymbolBy sortNamespaceMembersBy = SortSymbolBy::Name; ---- == Description Although members of namespaces are always sorted, determine how members of a namespace are sorted. When set to `name`, members are sorted by name. When set to `location`, members are sorted by their primary location in the source code, considering the short name of the path and the location in the file. Path to the root directory of the source code == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string sourceRoot; ---- == Description Path to the root directory of the source code. This path is used as a default for input files and a base for relative paths formed from absolute paths. This should typically be the root directory of the git project, as relative paths formed from it can be used to create links to these source files in the repository. Templates use the `base‐url` option to create links to the source code. C++ Standard Library include paths == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> stdlibIncludes; ---- == Description When `use‐system‐stdlib` is disabled, the C++ standard library headers are available in these paths. System include paths == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> systemIncludes; ---- == Description System include paths. These paths are used to add directories to the system include search path. The system include search path is used to search for system headers. The system headers are headers that are provided by the system and are not part of the project. The system headers are used to provide the standard library headers and other system headers. The system headers are not part of the project and are not checked for warnings and errors. Path for the tagfile == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string tagfile; ---- == Description Specifies the full path (filename) where the generated tagfile should be saved. If left empty, no tagfile will be generated. Use the system C standard library == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool useSystemLibc = false; ---- == Description To achieve reproducible results, MrDocs bundles the LibC headers with its definitions. To use the C standard library available in the system instead, set this option to true. Use the system C++ standard library == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool useSystemStdlib = false; ---- == Description To achieve reproducible results, MrDocs bundles the LibC++ headers. To use the C++ standard library available in the system instead, set this option to true. Verbose output == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool verbose = false; ---- == Description Verbose output. When set to true, MrDocs outputs additional information during the generation of the documentation. Treat warnings as errors == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool warnAsError = false; ---- == Description When set to `true`, MrDocs treats warnings as errors and stops the generation of the documentation. Warn if a documentation reference is broken == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool warnBrokenRef = true; ---- == Description When set to `true`, MrDocs outputs a warning message if a reference in the documentation is broken. Warn if documentation has errors == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool warnIfDocError = true; ---- == Description When set to `true`, MrDocs outputs a warning message if the documentation of a symbol has errors such as duplicate parameters and parameters that don't exist. Warn if enum values are not documented == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool warnIfUndocEnumVal = true; ---- == Description When set to `true`, MrDocs outputs a warning message if an enum value is not documented. Warn if symbols are not documented == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool warnIfUndocumented = true; ---- == Description When set to `true`, MrDocs outputs a warning message if a symbol that passes all filters is not documented. Warn if parameters are not documented == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool warnNoParamdoc = true; ---- == Description When set to `true`, MrDocs outputs a warning message if a named function parameter is not documented. Warn if documented functions have unnamed parameters == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool warnUnnamedParam = false; ---- == Description When set to `true`, MrDocs outputs a warning message if a documented function has a parameter that is not named. Enable warning messages == Synopsis Declared in `<mrdocs/PublicSettings.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool warnings = true; ---- == Description When set to `true`, MrDocs outputs warning messages during the generation of the documentation. It is usually recommended to enable warnings while writing the documentation. Destructor. == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual ~Config() noexcept = 0; ---- Return a DOM object representing the configuration keys. == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-Object[dom::Object] const& object() const = 0; ---- == Description The object is invalidated when the configuration is moved or destroyed. == Return Value a DOM object representing the configuration keys. Return the settings used to generate the Corpus and Docs. == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Config-Settings[Settings] const* operator‐>() const noexcept; ---- == Return Value the settings used to generate the Corpus and Docs. Return the settings used to generate the Corpus and Docs. == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Config-Settings[Settings] const& settings() const noexcept = 0; ---- == Return Value the settings used to generate the Corpus and Docs. Return a pool of threads for executing work. == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-ThreadPool[ThreadPool]& threadPool() const noexcept = 0; ---- == Return Value a pool of threads for executing work. Default constructor == Synopsis Declared in `<mrdocs/Config.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Config() noexcept; ---- Represents an expression with a (possibly known) value == Synopsis Declared in `<mrdocs/Metadata/Expression.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> struct ConstantExprInfo : link:#clang-mrdocs-ExprInfo[ExprInfo] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-ExprInfo[ExprInfo]` | Represents an expression |=== == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-ConstantExprInfo-type[`type`] | The underlying type of the expression |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ConstantExprInfo-operator_3way-03[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-ConstantExprInfo-Value[`Value`] | The expressions value, if it is known | link:#clang-mrdocs-ExprInfo-Written[`Written`] | The expression, as written |=== The underlying type of the expression == Synopsis Declared in `<mrdocs/Metadata/Expression.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using type = T; ---- Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Expression.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-ConstantExprInfo-operator_3way-05[operator<=>](link:#clang-mrdocs-ConstantExprInfo[ConstantExprInfo] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-ConstantExprInfo-operator_3way-05[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-ExprInfo-operator_3way[operator<=>](link:#clang-mrdocs-ExprInfo[ExprInfo] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-ExprInfo-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Expression.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-ConstantExprInfo[ConstantExprInfo] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Expression.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-ExprInfo[ExprInfo] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== The expressions value, if it is known == Synopsis Declared in `<mrdocs/Metadata/Expression.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<type> Value; ---- == Description The value of an expression will be unknown if it is e.g. dependent on a template parameter The collection of declarations in extracted form. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Corpus; ---- == Types [cols=2] |=== | Name | Description | link:#clang-mrdocs-Corpus-TraverseOptions[`TraverseOptions`] | Options to traverse the members of an Info. | link:#clang-mrdocs-Corpus-iterator[`iterator`] | The iterator type for the index of all symbols. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Corpus-2destructor[`~Corpus`] [.small]#[destructor]# [.small]#[virtual]# | Destructor. | link:#clang-mrdocs-Corpus-begin[`begin`] [.small]#[virtual]# | Return the begin iterator for the index of all symbols. | link:#clang-mrdocs-Corpus-empty[`empty`] | Whether the corpus contains any symbols. | link:#clang-mrdocs-Corpus-end[`end`] [.small]#[virtual]# | Return the end iterator for the index. | link:#clang-mrdocs-Corpus-exists[`exists`] | Return true if an Info with the specified symbol ID exists. | link:#clang-mrdocs-Corpus-find[`find`] [.small]#[virtual]# | Return the Info with the matching ID, or nullptr. | link:#clang-mrdocs-Corpus-get[`get`] | Return the Info with the specified symbol ID. | link:#clang-mrdocs-Corpus-globalNamespace[`globalNamespace`] | Return the metadata for the global namespace. | link:#clang-mrdocs-Corpus-lookup-01[`lookup`] | `lookup` overloads | link:#clang-mrdocs-Corpus-qualifiedName-06[`qualifiedName`] | `qualifiedName` overloads | link:#clang-mrdocs-Corpus-traverse-015[`traverse`] | Visit the members of specified Info. | link:#clang-mrdocs-Corpus-visitIDs[`visitIDs`] | Visit the specified Symbol IDs |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-Corpus-config[`config`] | The configuration used to generate this corpus. |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Corpus-2constructor[`Corpus`] [.small]#[constructor]# | Construct from `Config` |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-getParents-0e[`getParents`] | Return a list of the parent symbols of the specified Info. |=== Options to traverse the members of an Info. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TraverseOptions; ---- == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-Corpus-TraverseOptions-ordered[`ordered`] | Whether to traverse in a stable order | link:#clang-mrdocs-Corpus-TraverseOptions-recursive[`recursive`] | Whether to skip inherited members whose parent is not the Info | link:#clang-mrdocs-Corpus-TraverseOptions-skipInherited[`skipInherited`] | Whether to skip inherited members whose parent is not the Info |=== Whether to traverse in a stable order == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool ordered = false; ---- Whether to skip inherited members whose parent is not the Info == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool recursive = false; ---- Whether to skip inherited members whose parent is not the Info == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool skipInherited = false; ---- The iterator type for the index of all symbols. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class iterator; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-Corpus-iterator-const_pointer[`const_pointer`] | link:#clang-mrdocs-Corpus-iterator-const_reference[`const_reference`] | link:#clang-mrdocs-Corpus-iterator-difference_type[`difference_type`] | link:#clang-mrdocs-Corpus-iterator-pointer[`pointer`] | link:#clang-mrdocs-Corpus-iterator-reference[`reference`] | link:#clang-mrdocs-Corpus-iterator-size_type[`size_type`] | link:#clang-mrdocs-Corpus-iterator-value_type[`value_type`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Corpus-iterator-2constructor-090[`iterator`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-Corpus-iterator-operator_assign[`operator=`] | Copy assignment operator | link:#clang-mrdocs-Corpus-iterator-operator_star[`operator*`] | | link:#clang-mrdocs-Corpus-iterator-operator_inc-0d[`operator++`] | Increment operators | link:#clang-mrdocs-Corpus-iterator-operator_ptr[`operator‐>`] | | link:#clang-mrdocs-Corpus-iterator-operator_eq[`operator==`] | Equality operator | link:#clang-mrdocs-Corpus-iterator-operator_not_eq[`operator!=`] | Inequality operator |=== == Description The iterator is a forward iterator that iterates over all symbols in the index. It dereferences to a reference to a const link:#clang-mrdocs-Info[`Info`]. The logic for incrementing the iterator is provided by the Corpus implementation via a function that retuns the next Info in the index, or nullptr if there are no more. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_pointer = link:#clang-mrdocs-Corpus-iterator-value_type[value_type] const*; ---- == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_reference = link:#clang-mrdocs-Corpus-iterator-value_type[value_type] const&; ---- == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using difference_type = std::ptrdiff_t; ---- == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using pointer = link:#clang-mrdocs-Corpus-iterator-value_type[value_type]*; ---- == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using reference = link:#clang-mrdocs-Corpus-iterator-value_type[value_type]&; ---- == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using size_type = std::size_t; ---- == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using value_type = link:#clang-mrdocs-Info[Info] const; ---- Constructors == Synopses Declared in `<mrdocs/Corpus.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Corpus-iterator-2constructor-04[iterator]() = default; ---- [.small]#link:#clang-mrdocs-Corpus-iterator-2constructor-04[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Corpus-iterator-2constructor-09a[iterator](link:#clang-mrdocs-Corpus-iterator[iterator] const& other) = default; ---- [.small]#link:#clang-mrdocs-Corpus-iterator-2constructor-09a[_» more..._]# Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Corpus-iterator-2constructor-0b[iterator]( link:#clang-mrdocs-Corpus[Corpus] const* corpus, link:#clang-mrdocs-Info[Info] const* val, link:#clang-mrdocs-Info[Info] const*(* next)(link:#clang-mrdocs-Corpus[Corpus] const*, link:#clang-mrdocs-Info[Info] const*)); ---- [.small]#link:#clang-mrdocs-Corpus-iterator-2constructor-0b[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr iterator() = default; ---- Copy constructor == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr iterator(link:#clang-mrdocs-Corpus-iterator[iterator] const& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Constructor == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- iterator( link:#clang-mrdocs-Corpus[Corpus] const* corpus, link:#clang-mrdocs-Info[Info] const* val, link:#clang-mrdocs-Info[Info] const*(* next)(link:#clang-mrdocs-Corpus[Corpus] const*, link:#clang-mrdocs-Info[Info] const*)); ---- == Parameters [cols=2] |=== | Name | Description | *corpus* | The object to construct from | *val* | Base class with common properties of all symbols | *next* | Base class with common properties of all symbols |=== Copy assignment operator == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Corpus-iterator[iterator]& operator=(link:#clang-mrdocs-Corpus-iterator[iterator] const& other) = default; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Corpus-iterator-const_reference[const_reference] operator*() const noexcept; ---- Increment operators == Synopses Declared in `<mrdocs/Corpus.hpp>` Increment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Corpus-iterator[iterator]& link:#clang-mrdocs-Corpus-iterator-operator_inc-01[operator++]() noexcept; ---- [.small]#link:#clang-mrdocs-Corpus-iterator-operator_inc-01[_» more..._]# Increment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Corpus-iterator[iterator] link:#clang-mrdocs-Corpus-iterator-operator_inc-0c[operator++](int) noexcept; ---- [.small]#link:#clang-mrdocs-Corpus-iterator-operator_inc-0c[_» more..._]# Increment operator == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Corpus-iterator[iterator]& operator++() noexcept; ---- == Return Value Reference to the current object Increment operator == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Corpus-iterator[iterator] operator++(int) noexcept; ---- == Return Value Another instance of the object == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Corpus-iterator-const_pointer[const_pointer] operator‐>() const noexcept; ---- Equality operator == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-Corpus-iterator[iterator] const& other) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Inequality operator == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator!=(link:#clang-mrdocs-Corpus-iterator[iterator] const& other) const noexcept; ---- == Return Value `true` if the objects are not equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Destructor. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual ~Corpus() noexcept; ---- Return the begin iterator for the index of all symbols. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Corpus-iterator[iterator] begin() const noexcept = 0; ---- == Return Value the begin iterator for the index of all symbols. Whether the corpus contains any symbols. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool empty() const noexcept; ---- == Return Value true if the corpus is empty, otherwise false. Return the end iterator for the index. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Corpus-iterator[iterator] end() const noexcept = 0; ---- == Return Value the end iterator for the index. Return true if an Info with the specified symbol ID exists. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool exists(link:#clang-mrdocs-SymbolID[SymbolID] const& id) const noexcept; ---- == Description This function uses the link:#clang-mrdocs-Corpus-find[`find`] function to locate the Info with the specified symbol ID and returns true if it exists, otherwise false. == Return Value true if an Info with the specified symbol ID exists. == Parameters [cols=2] |=== | Name | Description | *id* | A unique identifier for a symbol. |=== Return the Info with the matching ID, or nullptr. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Info[Info] const* find(link:#clang-mrdocs-SymbolID[SymbolID] const& id) const noexcept = 0; ---- == Return Value the Info with the matching ID, or nullptr. == Parameters [cols=2] |=== | Name | Description | *id* | A unique identifier for a symbol. |=== Return the Info with the specified symbol ID. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T = link:#clang-mrdocs-Info[Info]> requires std::derived_from<T, Info> T const& get(link:#clang-mrdocs-SymbolID[SymbolID] const& id) const noexcept; ---- == Description This function uses the link:#clang-mrdocs-Corpus-find[`find`] function to locate the Info with the specified symbol ID. The result is converted to the specified type T and returned. The function link:#clang-mrdocs-Corpus-exists[`exists`] can be used to determine if an Info with the specified symbol ID exists. If the id does not exist, the behavior is undefined. If the Info is not of type T, the behavior is undefined. == Return Value the Info with the specified symbol ID. == Parameters [cols=2] |=== | Name | Description | *id* | A unique identifier for a symbol. |=== Return the metadata for the global namespace. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-NamespaceInfo[NamespaceInfo] const& globalNamespace() const noexcept; ---- == Description This function is equivalent to calling link:#clang-mrdocs-Corpus-get[`get`] with the symbol ID for the global namespace. == Return Value the metadata for the global namespace. `lookup` overloads == Synopses Declared in `<mrdocs/Corpus.hpp>` Return the Info for the matching string in the global context. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::reference_wrapper<Info const>>] link:#clang-mrdocs-Corpus-lookup-06[lookup](std::string_view name) const; ---- [.small]#link:#clang-mrdocs-Corpus-lookup-06[_» more..._]# Return the Info for the matching string in a given context. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Expected-03[Expected<std::reference_wrapper<Info const>>] link:#clang-mrdocs-Corpus-lookup-02[lookup]( link:#clang-mrdocs-SymbolID[SymbolID] const& context, std::string_view name) const = 0; ---- [.small]#link:#clang-mrdocs-Corpus-lookup-02[_» more..._]# == Return Value * The Info for the symbol with the specified name in the global context, or an error if not found. * The Info for the symbol with the specified name in the specified context, or an error if not found. If multiple symbols match, one is returned arbitrarily. Use link:#clang-mrdocs-Corpus-traverse-015[`traverse`] to find all matching symbols. == Parameters [cols=2] |=== | Name | Description | *name* | The name of the symbol to look up. | *context* | The context to look up the symbol in. |=== Return the Info for the matching string in the global context. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::reference_wrapper<Info const>>] lookup(std::string_view name) const; ---- == Return Value The Info for the symbol with the specified name in the global context, or an error if not found. == Parameters [cols=2] |=== | Name | Description | *name* | The name of the symbol to look up. |=== Return the Info for the matching string in a given context. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Expected-03[Expected<std::reference_wrapper<Info const>>] lookup( link:#clang-mrdocs-SymbolID[SymbolID] const& context, std::string_view name) const = 0; ---- == Return Value The Info for the symbol with the specified name in the specified context, or an error if not found. If multiple symbols match, one is returned arbitrarily. Use link:#clang-mrdocs-Corpus-traverse-015[`traverse`] to find all matching symbols. == Parameters [cols=2] |=== | Name | Description | *context* | The context to look up the symbol in. | *name* | The name of the symbol to look up. |=== `qualifiedName` overloads == Synopses Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-Corpus-qualifiedName-02[qualifiedName](link:#clang-mrdocs-Info[Info] const& I) const; ---- [.small]#link:#clang-mrdocs-Corpus-qualifiedName-02[_» more..._]# Return the fully qualified name of the specified Info. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void link:#clang-mrdocs-Corpus-qualifiedName-0f7[qualifiedName]( link:#clang-mrdocs-Info[Info] const& I, std::string& temp) const = 0; ---- [.small]#link:#clang-mrdocs-Corpus-qualifiedName-0f7[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-Corpus-qualifiedName-05[qualifiedName]( link:#clang-mrdocs-Info[Info] const& I, link:#clang-mrdocs-SymbolID[SymbolID] const& context) const; ---- [.small]#link:#clang-mrdocs-Corpus-qualifiedName-05[_» more..._]# Return a qualified name from the specified context. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void link:#clang-mrdocs-Corpus-qualifiedName-0fa[qualifiedName]( link:#clang-mrdocs-Info[Info] const& I, link:#clang-mrdocs-SymbolID[SymbolID] const& context, std::string& result) const = 0; ---- [.small]#link:#clang-mrdocs-Corpus-qualifiedName-0fa[_» more..._]# == Return Value A reference to the string `temp`. == Parameters [cols=2] |=== | Name | Description | *I* | The Info to get the qualified name for. | *temp* | The string to store the result in. | *context* | The context to get the qualified name from. | *result* | The string to store the result in. |=== == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string qualifiedName(link:#clang-mrdocs-Info[Info] const& I) const; ---- Return the fully qualified name of the specified Info. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void qualifiedName( link:#clang-mrdocs-Info[Info] const& I, std::string& temp) const = 0; ---- == Description This function returns the fully qualified name of the specified Info `I` as a string. The `Info` parents are traversed to construct the fully qualified name which is stored in the string `temp`. == Return Value A reference to the string `temp`. == Parameters [cols=2] |=== | Name | Description | *I* | The Info to get the qualified name for. | *temp* | The string to store the result in. |=== == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string qualifiedName( link:#clang-mrdocs-Info[Info] const& I, link:#clang-mrdocs-SymbolID[SymbolID] const& context) const; ---- Return a qualified name from the specified context. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void qualifiedName( link:#clang-mrdocs-Info[Info] const& I, link:#clang-mrdocs-SymbolID[SymbolID] const& context, std::string& result) const = 0; ---- == Description This function returns the qualified name of the specified Info `I` from the context specified by the SymbolID `context`. If the context is a parent of `I`, the qualified name is constructed relative to the context. For instance, if `I` is `A::B::C::D` and context is `A::B`, the result is `C::D`. If the context is not a parent of `I`, the qualified name is constructed relative to the global namespace with the prefix `::`. == Return Value a qualified name from the specified context. == Parameters [cols=2] |=== | Name | Description | *I* | The Info to get the qualified name for. | *context* | The context to get the qualified name from. | *result* | The string to store the result in. |=== Visit the members of specified Info. == Synopses Declared in `<mrdocs/Corpus.hpp>` Visit the members of specified Info. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::derived_from<Info> T, class F, class... Args> void link:#clang-mrdocs-Corpus-traverse-03[traverse]( T const& I, F&& f, Args...&&... args) const; ---- [.small]#link:#clang-mrdocs-Corpus-traverse-03[_» more..._]# Visit the members of specified Info. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::derived_from<Info> T, class F, class... Args> void link:#clang-mrdocs-Corpus-traverse-01f[traverse]( link:#clang-mrdocs-Corpus-TraverseOptions[TraverseOptions] const& opts, T const& I, F&& f, Args...&&... args) const; ---- [.small]#link:#clang-mrdocs-Corpus-traverse-01f[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *I* | The Info to visit. | *f* | The function to invoke. | *args* | The arguments to pass to the function. | *opts* | The options to traverse. |=== Visit the members of specified Info. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::derived_from<Info> T, class F, class... Args> void traverse( T const& I, F&& f, Args...&&... args) const; ---- == Description This function invokes the specified function `f` for each member of the specified Info `I`. For each member of `I`, the function will invoke the function object `fn` with a type derived from `Info` as the first argument, followed by `args...`. The type of the first argument is determined by the `InfoKind` of the `Info` object. == Parameters [cols=2] |=== | Name | Description | *I* | The Info to visit. | *f* | The function to invoke. | *args* | The arguments to pass to the function. |=== Visit the members of specified Info. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::derived_from<Info> T, class F, class... Args> void traverse( link:#clang-mrdocs-Corpus-TraverseOptions[TraverseOptions] const& opts, T const& I, F&& f, Args...&&... args) const; ---- == Description This function invokes the specified function `f` for each member of the specified Info `I`. For each member of `I`, the function will invoke the function object `fn` with a type derived from `Info` as the first argument, followed by `args...`. The type of the first argument is determined by the `InfoKind` of the `Info` object. == Parameters [cols=2] |=== | Name | Description | *opts* | The options to traverse. | *I* | The Info to visit. | *f* | The function to invoke. | *args* | The arguments to pass to the function. |=== Visit the specified Symbol IDs == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< link:#clang-mrdocs-range_of[range_of<SymbolID>] R, class F, class... Args> void visitIDs( R&& range, F&& f, Args...&&... args) const; ---- == Description This function invokes the specified function `f` for each member of the specified range of Symbol IDs. For each member of `I` associated with the ID in `range`, the function will invoke the function object `fn` with a type derived from `Info` as the first argument, followed by `args...`. The type of the first argument is determined by the `InfoKind` of the `Info` object. == Parameters [cols=2] |=== | Name | Description | *range* | A range of SymbolID objects. | *f* | The function to invoke. | *args* | The arguments to pass to the function. |=== The configuration used to generate this corpus. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Config[Config] const& config; ---- Construct from `Config` == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Corpus(link:#clang-mrdocs-Config[Config] const& config_) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *config_* | The object to copy construct from |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct DecltypeTypeInfo final : link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Decltype>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Decltype>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-DecltypeTypeInfo-operator_3way-01[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-DecltypeTypeInfo-isArray[`isArray`] | link:#clang-mrdocs-DecltypeTypeInfo-isAuto[`isAuto`] | link:#clang-mrdocs-DecltypeTypeInfo-isDecltype[`isDecltype`] | link:#clang-mrdocs-DecltypeTypeInfo-isFunction[`isFunction`] | link:#clang-mrdocs-DecltypeTypeInfo-isLValueReference[`isLValueReference`] | link:#clang-mrdocs-DecltypeTypeInfo-isMemberPointer[`isMemberPointer`] | link:#clang-mrdocs-DecltypeTypeInfo-isNamed[`isNamed`] | link:#clang-mrdocs-DecltypeTypeInfo-isPointer[`isPointer`] | link:#clang-mrdocs-DecltypeTypeInfo-isRValueReference[`isRValueReference`] |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-DecltypeTypeInfo-Operand[`Operand`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-DecltypeTypeInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-innerType-0f5[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerType-0f7[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0c[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0d[`innerTypePtr`] | Return the inner type. |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-DecltypeTypeInfo-operator_3way-07[operator<=>](link:#clang-mrdocs-DecltypeTypeInfo[DecltypeTypeInfo] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-DecltypeTypeInfo-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-DecltypeTypeInfo-operator_3way-05[operator<=>](link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Decltype>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-DecltypeTypeInfo-operator_3way-05[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-DecltypeTypeInfo[DecltypeTypeInfo] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Decltype>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isArray() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isAuto() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isDecltype() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isLValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isMemberPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamed() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ExprInfo[ExprInfo] Operand; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TypeKind[TypeKind] kind_id; ---- The default empty predicate. == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct DefaultEmptyPredicate; ---- == Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-DefaultEmptyPredicate-operator_call[`operator()`] |=== == Description This predicate is true when t.empty() returns `true` where `t` is a `T`. == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::ranges::range T> constexpr bool operator()(T const& t) const noexcept; ---- Front‐end factory for producing Dom nodes. == Synopsis Declared in `<mrdocs/Metadata/DomCorpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class DomCorpus; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-DomCorpus-2constructor[`DomCorpus`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-DomCorpus-2destructor[`~DomCorpus`] [.small]#[destructor]# [.small]#[virtual]# | Destructor. | link:#clang-mrdocs-DomCorpus-construct[`construct`] [.small]#[virtual]# | Construct a lazy Dom object representing the specified symbol. | link:#clang-mrdocs-DomCorpus-get[`get`] | Return a Dom object representing the given symbol. | link:#clang-mrdocs-DomCorpus-getCorpus[`getCorpus`] | Returns the Corpus associated with the Dom. | link:#clang-mrdocs-DomCorpus-getJavadoc[`getJavadoc`] [.small]#[virtual]# | Return a Dom value representing the Javadoc. | link:#clang-mrdocs-DomCorpus-operator_star[`operator*`] | Returns the Corpus associated with the Dom. | link:#clang-mrdocs-DomCorpus-operator_ptr[`operator‐>`] | Returns the Corpus associated with the Dom. |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-getParents-02[`getParents`] | Return a list of the parent symbols of the specified Info. |=== == Description This class keeps a reference to the link:#clang-mrdocs-Corpus[`Corpus`] of extracted metadata, and provides a mechanism for constructing DOM nodes representing the metadata. A link:#clang-mrdocs-Generator[`Generator`] can subclass this object then uses it to create the Dom nodes used as input for rendering template engines. Constructor. == Synopsis Declared in `<mrdocs/Metadata/DomCorpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- DomCorpus(link:#clang-mrdocs-Corpus[Corpus] const& corpus); ---- == Description Ownership of the specified Corpus is not transferred; the caller is responsible for ensuring the lifetime extension of the object. == Parameters [cols=2] |=== | Name | Description | *corpus* | The Corpus whose metadata to use. |=== Destructor. == Synopsis Declared in `<mrdocs/Metadata/DomCorpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual ~DomCorpus(); ---- Construct a lazy Dom object representing the specified symbol. == Synopsis Declared in `<mrdocs/Metadata/DomCorpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-Object[dom::Object] construct(link:#clang-mrdocs-Info[Info] const& I) const; ---- == Description This function is called internally when a `dom::Object` representing a symbol needs to be constructed because it was not found in the cache. == Return Value A container of key and value pairs. == Parameters [cols=2] |=== | Name | Description | *I* | Base class with common properties of all symbols |=== Return a Dom object representing the given symbol. == Synopsis Declared in `<mrdocs/Metadata/DomCorpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] get(link:#clang-mrdocs-SymbolID[SymbolID] const& id) const; ---- == Return Value A value containing the symbol contents, or null if `id` is invalid. == Parameters [cols=2] |=== | Name | Description | *id* | The id of the symbol to return. |=== Returns the Corpus associated with the Dom. == Synopsis Declared in `<mrdocs/Metadata/DomCorpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Corpus[Corpus] const& getCorpus() const; ---- == Return Value the Corpus associated with the Dom. Return a Dom value representing the Javadoc. == Synopsis Declared in `<mrdocs/Metadata/DomCorpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-dom-Value[dom::Value] getJavadoc(link:#clang-mrdocs-Javadoc[Javadoc] const& jd) const; ---- == Description The default implementation returns null. A link:#clang-mrdocs-Generator[`Generator`] should override this member and return a value that has suitable strings in the generator's output format. == Return Value a Dom value representing the Javadoc. == Parameters [cols=2] |=== | Name | Description | *jd* | A processed Doxygen‐style comment attached to a declaration. |=== Returns the Corpus associated with the Dom. == Synopsis Declared in `<mrdocs/Metadata/DomCorpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Corpus[Corpus] const& operator*() const; ---- == Return Value the Corpus associated with the Dom. Returns the Corpus associated with the Dom. == Synopsis Declared in `<mrdocs/Metadata/DomCorpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Corpus[Corpus] const* operator‐>() const; ---- == Return Value the Corpus associated with the Dom. Info for enum constants. == Synopsis Declared in `<mrdocs/Metadata/Info/EnumConstant.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct EnumConstantInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::EnumConstant>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::EnumConstant>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-EnumConstantInfo-2constructor[`EnumConstantInfo`] [.small]#[constructor]# | Construct from `SymbolID` | link:#clang-mrdocs-EnumConstantInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-EnumConstantInfo-isConcept[`isConcept`] | link:#clang-mrdocs-EnumConstantInfo-isEnum[`isEnum`] | link:#clang-mrdocs-EnumConstantInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-EnumConstantInfo-isFunction[`isFunction`] | link:#clang-mrdocs-EnumConstantInfo-isGuide[`isGuide`] | link:#clang-mrdocs-EnumConstantInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-EnumConstantInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-EnumConstantInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-EnumConstantInfo-isRecord[`isRecord`] | link:#clang-mrdocs-EnumConstantInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-EnumConstantInfo-isUsing[`isUsing`] | link:#clang-mrdocs-EnumConstantInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-EnumConstantInfo-Initializer[`Initializer`] | The initializer expression, if any |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-EnumConstantInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/EnumConstant.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit EnumConstantInfo(link:#clang-mrdocs-SymbolID[SymbolID] ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to construct from |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::EnumConstant>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- The initializer expression, if any == Synopsis Declared in `<mrdocs/Metadata/Info/EnumConstant.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ConstantExprInfo[ConstantExprInfo<uint64_t>] Initializer; ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Enum.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct EnumInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Enum>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Enum>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-EnumInfo-2constructor[`EnumInfo`] [.small]#[constructor]# | Construct from `SymbolID` | link:#clang-mrdocs-EnumInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-EnumInfo-isConcept[`isConcept`] | link:#clang-mrdocs-EnumInfo-isEnum[`isEnum`] | link:#clang-mrdocs-EnumInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-EnumInfo-isFunction[`isFunction`] | link:#clang-mrdocs-EnumInfo-isGuide[`isGuide`] | link:#clang-mrdocs-EnumInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-EnumInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-EnumInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-EnumInfo-isRecord[`isRecord`] | link:#clang-mrdocs-EnumInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-EnumInfo-isUsing[`isUsing`] | link:#clang-mrdocs-EnumInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-EnumInfo-Constants[`Constants`] | The members of this scope. | link:#clang-mrdocs-EnumInfo-Scoped[`Scoped`] | | link:#clang-mrdocs-EnumInfo-UnderlyingType[`UnderlyingType`] | |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-EnumInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/Enum.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit EnumInfo(link:#clang-mrdocs-SymbolID[SymbolID] ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to construct from |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Enum>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- The members of this scope. == Synopsis Declared in `<mrdocs/Metadata/Info/Enum.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Constants; ---- == Description All members are enum constants; == Synopsis Declared in `<mrdocs/Metadata/Info/Enum.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool Scoped = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Enum.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] UnderlyingType = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- Holds the description of an error, or success. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Error final ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Error-2constructor-0c[`Error`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-Error-operator_assign-01[`operator=`] | Assignment operators | link:#clang-mrdocs-Error-Throw-04[`Throw`] | `Throw` overloads | link:#clang-mrdocs-Error-failed[`failed`] | Return true if this holds an error. | link:#clang-mrdocs-Error-location[`location`] | Return the source location. | link:#clang-mrdocs-Error-message[`message`] | Return the error string. | link:#clang-mrdocs-Error-reason[`reason`] | Return the reason string. | link:#clang-mrdocs-Error-swap[`swap`] | | link:#clang-mrdocs-Error-where[`where`] | Return the location string. | link:#clang-mrdocs-Error-2conversion[`operator bool`] | Return true if this holds an error. | link:#clang-mrdocs-Error-operator_eq[`operator==`] | Return true if this equals rhs. |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-swap-03[clang::mrdocs::swap]` | |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-formatError[`formatError`] | Return a formatted error. |=== Constructor. == Synopses Declared in `<mrdocs/Support/Error.hpp>` Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Error-2constructor-0e[Error]() noexcept = default; ---- [.small]#link:#clang-mrdocs-Error-2constructor-0e[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Error-2constructor-0d0[Error](link:#clang-mrdocs-Error[Error] const& other) = default; ---- [.small]#link:#clang-mrdocs-Error-2constructor-0d0[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Error-2constructor-09[Error](link:#clang-mrdocs-Error[Error]&& other) noexcept = default; ---- [.small]#link:#clang-mrdocs-Error-2constructor-09[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-Error-2constructor-07[Error](std::exception const& ex); ---- [.small]#link:#clang-mrdocs-Error-2constructor-07[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-Error-2constructor-0dc[Error]( std::string reason, std::source_location loc = source_location::current()); ---- [.small]#link:#clang-mrdocs-Error-2constructor-0dc[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-Error-2constructor-03[Error]( std::error_code const& ec, std::source_location loc = source_location::current()); ---- [.small]#link:#clang-mrdocs-Error-2constructor-03[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Error-2constructor-0d9[Error]( std::vector<Error> const& errors, std::source_location loc = source_location::current()); ---- [.small]#link:#clang-mrdocs-Error-2constructor-0d9[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *reason* | A string indicating the cause of the failure. This must not be empty. | *loc* | The source location where the error occurred. | *ec* | The error code. | *errors* | The list of errors to combine. |=== Constructor. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Error() noexcept = default; ---- == Description A default constructed error is equivalent to success. Constructor. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Error(link:#clang-mrdocs-Error[Error] const& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Error(link:#clang-mrdocs-Error[Error]&& other) noexcept = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Error(std::exception const& ex); ---- == Description The constructed object will always indicate a failure, even if the message in the exception is empty. == Parameters [cols=2] |=== | Name | Description | *ex* | The object to copy construct from |=== Constructor. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Error( std::string reason, std::source_location loc = source_location::current()); ---- == Parameters [cols=2] |=== | Name | Description | *reason* | A string indicating the cause of the failure. This must not be empty. | *loc* | The source location where the error occurred. |=== Constructor. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Error( std::error_code const& ec, std::source_location loc = source_location::current()); ---- == Parameters [cols=2] |=== | Name | Description | *ec* | The error code. | *loc* | The source location where the error occurred. |=== Constructor. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Error( std::vector<Error> const& errors, std::source_location loc = source_location::current()); ---- == Description This constructs a new error from a list of zero or more errors. If the list is empty, or if all the errors in the list indicate success, then newly constructed object will indicate success. == Parameters [cols=2] |=== | Name | Description | *errors* | The list of errors to combine. | *loc* | The source location where the error occurred. |=== Assignment operators == Synopses Declared in `<mrdocs/Support/Error.hpp>` Assignment. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Error[Error]& link:#clang-mrdocs-Error-operator_assign-05[operator=](link:#clang-mrdocs-Error[Error] const& other) = default; ---- [.small]#link:#clang-mrdocs-Error-operator_assign-05[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Error[Error]& link:#clang-mrdocs-Error-operator_assign-00[operator=](link:#clang-mrdocs-Error[Error]&& other) noexcept = default; ---- [.small]#link:#clang-mrdocs-Error-operator_assign-00[_» more..._]# Assignment. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Error[Error]& operator=(link:#clang-mrdocs-Error[Error] const& other) = default; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Constructor. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Error[Error]& operator=(link:#clang-mrdocs-Error[Error]&& other) noexcept = default; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to move assign from |=== `Throw` overloads == Synopses Declared in `<mrdocs/Support/Error.hpp>` Throw Exception(this) [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[noreturn]] void link:#clang-mrdocs-Error-Throw-0c[Throw]() const &; ---- [.small]#link:#clang-mrdocs-Error-Throw-0c[_» more..._]# Throw Exception(std::move(this)) [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[noreturn]] void link:#clang-mrdocs-Error-Throw-06[Throw]() &&; ---- [.small]#link:#clang-mrdocs-Error-Throw-06[_» more..._]# == Preconditions * this‐>failed() Throw Exception(this) == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[noreturn]] void Throw() const &; ---- == Preconditions * this‐>failed() Throw Exception(std::move(this)) == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[noreturn]] void Throw() &&; ---- == Preconditions * this‐>failed() Return true if this holds an error. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool failed() const noexcept; ---- == Return Value true if this holds an error. Return the source location. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::source_location const& location() const noexcept; ---- == Return Value the source location. Return the error string. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string const& message() const noexcept; ---- == Return Value the error string. Return the reason string. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string const& reason() const noexcept; ---- == Return Value the reason string. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void swap(link:#clang-mrdocs-Error[Error]& rhs) noexcept; ---- Return the location string. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string const& where() const noexcept; ---- == Return Value the location string. Return true if this holds an error. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit operator bool() const noexcept; ---- == Return Value true if this holds an error. Return true if this equals rhs. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-Error[Error] const& rhs) const noexcept; ---- == Return Value true if this equals rhs. == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Type of all exceptions thrown by the API. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Exception final : public std::exception ---- == Base Classes [cols=2] |=== | Name | Description | `std::exception` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Exception-2constructor[`Exception`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-Exception-operator_assign[`operator=`] | | link:#clang-mrdocs-Exception-error[`error`] | Return the Error stored in the exception. | link:#clang-mrdocs-Exception-what[`what`] [.small]#[virtual]# | Return a null‐terminated error string. |=== Constructor. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Exception(link:#clang-mrdocs-Error[Error] err) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *err* | The object to construct from |=== == Synopsis Declared in `<__exception/exception.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]] constexpr exception& operator=(exception const& value) noexcept = default; ---- Return the Error stored in the exception. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Error[Error] const& error() const noexcept; ---- == Return Value the Error stored in the exception. Return a null‐terminated error string. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual char const* what() const noexcept override; ---- == Return Value a null‐terminated error string. A set of execution agents for performing concurrent work. == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Agent> class ExecutorGroup : public link:#clang-mrdocs-ExecutorGroupBase[ExecutorGroupBase] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-ExecutorGroupBase[ExecutorGroupBase]` | |=== == Types [cols=1] |=== | Name | link:#clang-mrdocs-ExecutorGroupBase-arg_t[`arg_t`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ExecutorGroup-2constructor[`ExecutorGroup`] [.small]#[constructor]# | Construct from `ThreadPool` | link:#clang-mrdocs-ExecutorGroup-async[`async`] | Submit work to be executed. | link:#clang-mrdocs-ExecutorGroup-emplace[`emplace`] | Construct a new agent in the group. | link:#clang-mrdocs-ExecutorGroupBase-wait[`wait`] | Block until all work has completed. |=== == Protected Types [cols=1] |=== | Name | link:#clang-mrdocs-ExecutorGroupBase-AnyAgent[`AnyAgent`] | link:#clang-mrdocs-ExecutorGroupBase-Impl[`Impl`] |=== == Protected Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-ExecutorGroupBase-post[`post`] | link:#clang-mrdocs-ExecutorGroupBase-run[`run`] |=== == Protected Data Members [cols=1] |=== | Name | link:#clang-mrdocs-ExecutorGroupBase-agents_[`agents_`] | link:#clang-mrdocs-ExecutorGroupBase-impl_[`impl_`] | link:#clang-mrdocs-ExecutorGroupBase-work_[`work_`] |=== Construct from `ThreadPool` == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit ExecutorGroup(link:#clang-mrdocs-ThreadPool[ThreadPool]& threadPool); ---- == Parameters [cols=2] |=== | Name | Description | *threadPool* | The object to copy construct from |=== Submit work to be executed. == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class F, class... Args> void async( F&& f, Args...&&... args); ---- == Description The function object must have this equivalent signature: [,cpp] ---- void( Agent&, Args... ); ---- == Parameters [cols=2] |=== | Name | Description | *f* | The function to invoke. | *args* | Zero or more arguments to forward to the function. |=== Construct a new agent in the group. == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> void emplace(Args...&&... args); ---- == Description The behavior is undefined if there is any outstanding work or busy threads. == Parameters [cols=2] |=== | Name | Description | *args* | Zero or more arguments to forward to the agent constructor. |=== == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ExecutorGroupBase; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-ExecutorGroupBase-arg_t[`arg_t`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ExecutorGroupBase-2constructor-08[`ExecutorGroupBase`] [.small]#[constructor]# | Move constructor | link:#clang-mrdocs-ExecutorGroupBase-2destructor[`~ExecutorGroupBase`] [.small]#[destructor]# | Destructor | link:#clang-mrdocs-ExecutorGroupBase-wait[`wait`] | Block until all work has completed. |=== == Protected Types [cols=1] |=== | Name | link:#clang-mrdocs-ExecutorGroupBase-AnyAgent[`AnyAgent`] | link:#clang-mrdocs-ExecutorGroupBase-Impl[`Impl`] |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ExecutorGroupBase-2constructor-0f[`ExecutorGroupBase`] [.small]#[constructor]# | Construct from `ThreadPool` | link:#clang-mrdocs-ExecutorGroupBase-post[`post`] | | link:#clang-mrdocs-ExecutorGroupBase-run[`run`] | |=== == Protected Data Members [cols=1] |=== | Name | link:#clang-mrdocs-ExecutorGroupBase-agents_[`agents_`] | link:#clang-mrdocs-ExecutorGroupBase-impl_[`impl_`] | link:#clang-mrdocs-ExecutorGroupBase-work_[`work_`] |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-ExecutorGroup[`ExecutorGroup`] | A set of execution agents for performing concurrent work. |=== == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> using arg_t = link:#clang-mrdocs-ThreadPool-arg_t[ThreadPool::arg_t<T>]; ---- Move constructor == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ExecutorGroupBase(link:#clang-mrdocs-ExecutorGroupBase[ExecutorGroupBase]&& other) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Destructor == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~ExecutorGroupBase(); ---- Block until all work has completed. == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::vector<Error> wait() noexcept; ---- == Return Value Zero or more errors which were thrown from submitted work. == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct AnyAgent; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ExecutorGroupBase-AnyAgent-2destructor[`~AnyAgent`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-ExecutorGroupBase-AnyAgent-get[`get`] [.small]#[virtual]# | |=== Destructor == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual ~AnyAgent() = 0; ---- == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void* get() noexcept = 0; ---- == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Impl; ---- Construct from `ThreadPool` == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit ExecutorGroupBase(link:#clang-mrdocs-ThreadPool[ThreadPool]& value); ---- == Parameters [cols=2] |=== | Name | Description | *value* | The object to copy construct from |=== == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void post(link:#clang-mrdocs-any_callable-06[any_callable<void(void*)>]); ---- == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void run(std::unique_lock<std::mutex>); ---- == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::unique_ptr<AnyAgent>> agents_; ---- == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::unique_ptr<Impl> impl_; ---- == Synopsis Declared in `<mrdocs/Support/ExecutorGroup.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::deque<any_callable<void(void*)>> work_; ---- A container holding an error or a value. == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class E = link:#clang-mrdocs-Error[Error]> class Expected; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-Expected-03-error_type[`error_type`] | link:#clang-mrdocs-Expected-03-rebind[`rebind`] | link:#clang-mrdocs-Expected-03-unexpected_type[`unexpected_type`] | link:#clang-mrdocs-Expected-03-value_type[`value_type`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Expected-03-2constructor-02[`Expected`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-Expected-03-2destructor-0a[`~Expected`] [.small]#[destructor]# | Destructors | link:#clang-mrdocs-Expected-03-operator_assign-0aae[`operator=`] [.small]#[deleted]# | Assignment operators | link:#clang-mrdocs-Expected-03-and_then-0b97[`and_then`] | | link:#clang-mrdocs-Expected-03-emplace-0b[`emplace`] | | link:#clang-mrdocs-Expected-03-error-0e7[`error`] | | link:#clang-mrdocs-Expected-03-error_or-0d[`error_or`] | | link:#clang-mrdocs-Expected-03-has_value[`has_value`] | | link:#clang-mrdocs-Expected-03-operator_star-09[`operator*`] | Dereference operators | link:#clang-mrdocs-Expected-03-operator_ptr-0b[`operator‐>`] | Member access operators | link:#clang-mrdocs-Expected-03-or_else-0e[`or_else`] | | link:#clang-mrdocs-Expected-03-swap[`swap`] | | link:#clang-mrdocs-Expected-03-transform-04[`transform`] | | link:#clang-mrdocs-Expected-03-transform_error-05[`transform_error`] | | link:#clang-mrdocs-Expected-03-value-0cf[`value`] | | link:#clang-mrdocs-Expected-03-value_or-01[`value_or`] | | link:#clang-mrdocs-Expected-03-2conversion[`operator bool`] | Conversion to `bool` |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-Expected-03-unex_[`unex_`] [.small]#[variant member]# | link:#clang-mrdocs-Expected-03-val_[`val_`] [.small]#[variant member]# |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-swap-0c[clang::mrdocs::swap]` | | `link:#clang-mrdocs-operator_eq-0f[clang::mrdocs::operator==]` | Equality operator | `link:#clang-mrdocs-operator_eq-0e[clang::mrdocs::operator==]` | Equality operator | `link:#clang-mrdocs-operator_eq-0d[clang::mrdocs::operator==]` | Equality operator | `link:#clang-mrdocs-Expected-03[clang::mrdocs::Expected]` | A container holding an error or a value. |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-forEachFile-07[`forEachFile`] | Call a function for each file in a directory. | link:#clang-mrdocs-forEachFile-0d3[`forEachFile`] | Visit each file in a directory. | link:#clang-mrdocs-getSinglePageFullPath[`getSinglePageFullPath`] | Return the full path for single page output. | link:#clang-mrdocs-parse-04[`parse`] | Parse a string view | link:#clang-mrdocs-files-createDirectory[`files::createDirectory`] | Create a directory. | link:#clang-mrdocs-files-getFileText[`files::getFileText`] | Return the contents of a file as a string. | link:#clang-mrdocs-files-getFileType[`files::getFileType`] | Return the file type or an error | link:#clang-mrdocs-files-makeAbsolute-08[`files::makeAbsolute`] | Return an absolute path from a possibly relative path. | link:#clang-mrdocs-files-requireAbsolute[`files::requireAbsolute`] | Return an error if pathName is not absolute. | link:#clang-mrdocs-files-requireDirectory[`files::requireDirectory`] | Return an error if the path is not a directory. | link:#clang-mrdocs-js-registerHelper[`js::registerHelper`] | Register a JavaScript helper function |=== == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using error_type = E; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> using rebind = link:#clang-mrdocs-Expected-03[Expected<U, error_type>]; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using unexpected_type = link:#clang-mrdocs-Unexpected-02[Unexpected<E>]; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using value_type = T; ---- Constructors == Synopses Declared in `<mrdocs/Support/Expected.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-03-2constructor-030[Expected]() noexcept(std::is_nothrow_default_constructible_v<T>) requires std::is_default_constructible_v<T>; ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-030[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03-2constructor-010[Expected](link:#clang-mrdocs-Expected-03[Expected] const& other) = default; ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-010[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-03-2constructor-0f[Expected](link:#clang-mrdocs-Expected-03[Expected] const& x) noexcept(std::is_nothrow_copy_constructible_v<T> && std::is_nothrow_copy_constructible_v<E>) requires std::is_copy_constructible_v<T> && std::is_copy_constructible_v<E> && (!std::is_trivially_copy_constructible_v<T> || !std::is_trivially_copy_constructible_v<E>); ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-0f[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class G> requires std::is_constructible_v<T, U const&> && std::is_constructible_v<E, G const&> && (!constructible_from_expected<U, G>) constexpr explicit(explicit_conv<const U &, const G &>) link:#clang-mrdocs-Expected-03-2constructor-06[Expected](link:#clang-mrdocs-Expected-03[Expected<U, G>] const& x) noexcept(std::is_nothrow_constructible_v<T, const U &> && std::is_nothrow_constructible_v<E, const G &>); ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-06[_» more..._]# Move constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03-2constructor-033[Expected](link:#clang-mrdocs-Expected-03[Expected]&& other) = default; ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-033[_» more..._]# Move constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-03-2constructor-0e[Expected](link:#clang-mrdocs-Expected-03[Expected]&& x) noexcept(std::is_nothrow_move_constructible_v<T> && std::is_nothrow_move_constructible_v<E>) requires std::is_move_constructible_v<T> && std::is_move_constructible_v<E> && (!std::is_trivially_move_constructible_v<T> || !std::is_trivially_move_constructible_v<E>); ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-0e[_» more..._]# Move constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class G> requires std::is_constructible_v<T, U> && std::is_constructible_v<E, G> && (!constructible_from_expected<U, G>) constexpr explicit(explicit_conv<U, G>) link:#clang-mrdocs-Expected-03-2constructor-0c[Expected](link:#clang-mrdocs-Expected-03[Expected<U, G>]&& x) noexcept(std::is_nothrow_constructible_v<T, U> && std::is_nothrow_constructible_v<E, G>); ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-0c[_» more..._]# Construct from `Unexpected` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> requires std::is_constructible_v<E, G const&> constexpr explicit(!std::is_convertible_v<const G &, E>) link:#clang-mrdocs-Expected-03-2constructor-05[Expected](link:#clang-mrdocs-Unexpected-02[Unexpected<G>] const& u) noexcept(std::is_nothrow_constructible_v<E, const G &>); ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-05[_» more..._]# Construct from `U` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U = T> requires (!std::is_same_v<std::remove_cvref_t<U>, Expected>) && (!std::is_same_v<std::remove_cvref_t<U>, std::in_place_t>) && (!detail::isUnexpected<std::remove_cvref_t<U>>) && std::is_constructible_v<T, U> constexpr explicit(!std::is_convertible_v<U, T>) link:#clang-mrdocs-Expected-03-2constructor-0bf[Expected](U&& v) noexcept(std::is_nothrow_constructible_v<T, U>); ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-0bf[_» more..._]# Construct from `Unexpected` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> requires std::is_constructible_v<E, G> constexpr explicit(!std::is_convertible_v<G, E>) link:#clang-mrdocs-Expected-03-2constructor-0b2[Expected](link:#clang-mrdocs-Unexpected-02[Unexpected<G>]&& u) noexcept(std::is_nothrow_constructible_v<E, G>); ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-0b2[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> requires std::is_constructible_v<T, Args...> constexpr explicit link:#clang-mrdocs-Expected-03-2constructor-03d[Expected]( std::in_place_t, Args...&&... args) noexcept(std::is_nothrow_constructible_v<T, Args...>); ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-03d[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> requires std::is_constructible_v<E, Args...> constexpr explicit link:#clang-mrdocs-Expected-03-2constructor-0a[Expected]( link:#clang-mrdocs-unexpect_t[unexpect_t], Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, Args...>); ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-0a[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Args> requires std::is_constructible_v<T, std::initializer_list<U>&, Args...> constexpr explicit link:#clang-mrdocs-Expected-03-2constructor-031[Expected]( std::in_place_t, std::initializer_list<U> il, Args...&&... args) noexcept(std::is_nothrow_constructible_v<T, std::initializer_list<U> &, Args...>); ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-031[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Args> requires std::is_constructible_v<E, std::initializer_list<U>&, Args...> constexpr explicit link:#clang-mrdocs-Expected-03-2constructor-017[Expected]( link:#clang-mrdocs-unexpect_t[unexpect_t], std::initializer_list<U> il, Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, std::initializer_list<U> &, Args...>); ---- [.small]#link:#clang-mrdocs-Expected-03-2constructor-017[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Expected() noexcept(std::is_nothrow_default_constructible_v<T>) requires std::is_default_constructible_v<T>; ---- Copy constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Expected(link:#clang-mrdocs-Expected-03[Expected] const& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Copy constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Expected(link:#clang-mrdocs-Expected-03[Expected] const& x) noexcept(std::is_nothrow_copy_constructible_v<T> && std::is_nothrow_copy_constructible_v<E>) requires std::is_copy_constructible_v<T> && std::is_copy_constructible_v<E> && (!std::is_trivially_copy_constructible_v<T> || !std::is_trivially_copy_constructible_v<E>); ---- == Parameters [cols=2] |=== | Name | Description | *x* | The object to copy construct from |=== Copy constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class G> requires std::is_constructible_v<T, U const&> && std::is_constructible_v<E, G const&> && (!constructible_from_expected<U, G>) constexpr explicit(explicit_conv<const U &, const G &>) Expected(link:#clang-mrdocs-Expected-03[Expected<U, G>] const& x) noexcept(std::is_nothrow_constructible_v<T, const U &> && std::is_nothrow_constructible_v<E, const G &>); ---- == Parameters [cols=2] |=== | Name | Description | *x* | The object to copy construct from |=== Move constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Expected(link:#clang-mrdocs-Expected-03[Expected]&& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Move constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Expected(link:#clang-mrdocs-Expected-03[Expected]&& x) noexcept(std::is_nothrow_move_constructible_v<T> && std::is_nothrow_move_constructible_v<E>) requires std::is_move_constructible_v<T> && std::is_move_constructible_v<E> && (!std::is_trivially_move_constructible_v<T> || !std::is_trivially_move_constructible_v<E>); ---- == Parameters [cols=2] |=== | Name | Description | *x* | The object to move construct from |=== Move constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class G> requires std::is_constructible_v<T, U> && std::is_constructible_v<E, G> && (!constructible_from_expected<U, G>) constexpr explicit(explicit_conv<U, G>) Expected(link:#clang-mrdocs-Expected-03[Expected<U, G>]&& x) noexcept(std::is_nothrow_constructible_v<T, U> && std::is_nothrow_constructible_v<E, G>); ---- == Parameters [cols=2] |=== | Name | Description | *x* | The object to move construct from |=== Construct from `Unexpected` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> requires std::is_constructible_v<E, G const&> constexpr explicit(!std::is_convertible_v<const G &, E>) Expected(link:#clang-mrdocs-Unexpected-02[Unexpected<G>] const& u) noexcept(std::is_nothrow_constructible_v<E, const G &>); ---- == Parameters [cols=2] |=== | Name | Description | *u* | The object to copy construct from |=== Construct from `U` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U = T> requires (!std::is_same_v<std::remove_cvref_t<U>, Expected>) && (!std::is_same_v<std::remove_cvref_t<U>, std::in_place_t>) && (!detail::isUnexpected<std::remove_cvref_t<U>>) && std::is_constructible_v<T, U> constexpr explicit(!std::is_convertible_v<U, T>) Expected(U&& v) noexcept(std::is_nothrow_constructible_v<T, U>); ---- == Parameters [cols=2] |=== | Name | Description | *v* | The object to move construct from |=== Construct from `Unexpected` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> requires std::is_constructible_v<E, G> constexpr explicit(!std::is_convertible_v<G, E>) Expected(link:#clang-mrdocs-Unexpected-02[Unexpected<G>]&& u) noexcept(std::is_nothrow_constructible_v<E, G>); ---- == Parameters [cols=2] |=== | Name | Description | *u* | The object to move construct from |=== == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> requires std::is_constructible_v<T, Args...> constexpr explicit Expected( std::in_place_t, Args...&&... args) noexcept(std::is_nothrow_constructible_v<T, Args...>); ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> requires std::is_constructible_v<E, Args...> constexpr explicit Expected( link:#clang-mrdocs-unexpect_t[unexpect_t], Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, Args...>); ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Args> requires std::is_constructible_v<T, std::initializer_list<U>&, Args...> constexpr explicit Expected( std::in_place_t, std::initializer_list<U> il, Args...&&... args) noexcept(std::is_nothrow_constructible_v<T, std::initializer_list<U> &, Args...>); ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Args> requires std::is_constructible_v<E, std::initializer_list<U>&, Args...> constexpr explicit Expected( link:#clang-mrdocs-unexpect_t[unexpect_t], std::initializer_list<U> il, Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, std::initializer_list<U> &, Args...>); ---- Destructors == Synopses Declared in `<mrdocs/Support/Expected.hpp>` Destructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-03-2destructor-08[~Expected]() = default; ---- [.small]#link:#clang-mrdocs-Expected-03-2destructor-08[_» more..._]# Destructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-03-2destructor-04[~Expected]() requires (!std::is_trivially_destructible_v<T>) || (!std::is_trivially_destructible_v<E>); ---- [.small]#link:#clang-mrdocs-Expected-03-2destructor-04[_» more..._]# Destructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr ~Expected() = default; ---- Destructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr ~Expected() requires (!std::is_trivially_destructible_v<T>) || (!std::is_trivially_destructible_v<E>); ---- Assignment operators == Synopses Declared in `<mrdocs/Support/Expected.hpp>` Copy assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected]& link:#clang-mrdocs-Expected-03-operator_assign-0e[operator=](link:#clang-mrdocs-Expected-03[Expected] const& other) = delete; ---- [.small]#link:#clang-mrdocs-Expected-03-operator_assign-0e[_» more..._]# Copy assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-03[Expected]& link:#clang-mrdocs-Expected-03-operator_assign-0d[operator=](link:#clang-mrdocs-Expected-03[Expected] const& x) noexcept(std::is_nothrow_copy_constructible_v<T> && std::is_nothrow_copy_constructible_v<E> && std::is_nothrow_copy_assignable_v<T> && std::is_nothrow_copy_assignable_v<E>) requires std::is_copy_assignable_v<T> && std::is_copy_constructible_v<T> && std::is_copy_assignable_v<E> && std::is_copy_constructible_v<E> && (std::is_nothrow_move_constructible_v<T> || std::is_nothrow_move_constructible_v<E>); ---- [.small]#link:#clang-mrdocs-Expected-03-operator_assign-0d[_» more..._]# Move assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-03[Expected]& link:#clang-mrdocs-Expected-03-operator_assign-0c[operator=](link:#clang-mrdocs-Expected-03[Expected]&& x) noexcept(std::is_nothrow_move_constructible_v<T> && std::is_nothrow_move_constructible_v<E> && std::is_nothrow_move_assignable_v<T> && std::is_nothrow_move_assignable_v<E>) requires std::is_move_assignable_v<T> && std::is_move_constructible_v<T> && std::is_move_assignable_v<E> && std::is_move_constructible_v<E> && (std::is_nothrow_move_constructible_v<T> || std::is_nothrow_move_constructible_v<E>); ---- [.small]#link:#clang-mrdocs-Expected-03-operator_assign-0c[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G> requires std::is_constructible_v<E, G const&> && std::is_assignable_v<E&, G const&> && (std::is_nothrow_constructible_v<E, G const&> || std::is_nothrow_move_constructible_v<T> || std::is_nothrow_move_constructible_v<E>) constexpr link:#clang-mrdocs-Expected-03[Expected]& link:#clang-mrdocs-Expected-03-operator_assign-09[operator=](link:#clang-mrdocs-Unexpected-02[Unexpected<G>] const& e); ---- [.small]#link:#clang-mrdocs-Expected-03-operator_assign-09[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U = T> requires (!std::is_same_v<Expected, std::remove_cvref_t<U>>) && (!detail::isUnexpected<std::remove_cvref_t<U>>) && std::is_constructible_v<T, U> && std::is_assignable_v<T&, U> && (std::is_nothrow_constructible_v<T, U> || std::is_nothrow_move_constructible_v<T> || std::is_nothrow_move_constructible_v<E>) constexpr link:#clang-mrdocs-Expected-03[Expected]& link:#clang-mrdocs-Expected-03-operator_assign-0aa2[operator=](U&& v); ---- [.small]#link:#clang-mrdocs-Expected-03-operator_assign-0aa2[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G> requires std::is_constructible_v<E, G> && std::is_assignable_v<E&, G> && (std::is_nothrow_constructible_v<E, G> || std::is_nothrow_move_constructible_v<T> || std::is_nothrow_move_constructible_v<E>) constexpr link:#clang-mrdocs-Expected-03[Expected]& link:#clang-mrdocs-Expected-03-operator_assign-06[operator=](link:#clang-mrdocs-Unexpected-02[Unexpected<G>]&& e); ---- [.small]#link:#clang-mrdocs-Expected-03-operator_assign-06[_» more..._]# Copy assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected]& operator=(link:#clang-mrdocs-Expected-03[Expected] const& other) = delete; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Copy assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-03[Expected]& operator=(link:#clang-mrdocs-Expected-03[Expected] const& x) noexcept(std::is_nothrow_copy_constructible_v<T> && std::is_nothrow_copy_constructible_v<E> && std::is_nothrow_copy_assignable_v<T> && std::is_nothrow_copy_assignable_v<E>) requires std::is_copy_assignable_v<T> && std::is_copy_constructible_v<T> && std::is_copy_assignable_v<E> && std::is_copy_constructible_v<E> && (std::is_nothrow_move_constructible_v<T> || std::is_nothrow_move_constructible_v<E>); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *x* | The object to copy assign from |=== Move assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-03[Expected]& operator=(link:#clang-mrdocs-Expected-03[Expected]&& x) noexcept(std::is_nothrow_move_constructible_v<T> && std::is_nothrow_move_constructible_v<E> && std::is_nothrow_move_assignable_v<T> && std::is_nothrow_move_assignable_v<E>) requires std::is_move_assignable_v<T> && std::is_move_constructible_v<T> && std::is_move_assignable_v<E> && std::is_move_constructible_v<E> && (std::is_nothrow_move_constructible_v<T> || std::is_nothrow_move_constructible_v<E>); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *x* | The object to move assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G> requires std::is_constructible_v<E, G const&> && std::is_assignable_v<E&, G const&> && (std::is_nothrow_constructible_v<E, G const&> || std::is_nothrow_move_constructible_v<T> || std::is_nothrow_move_constructible_v<E>) constexpr link:#clang-mrdocs-Expected-03[Expected]& operator=(link:#clang-mrdocs-Unexpected-02[Unexpected<G>] const& e); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *e* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U = T> requires (!std::is_same_v<Expected, std::remove_cvref_t<U>>) && (!detail::isUnexpected<std::remove_cvref_t<U>>) && std::is_constructible_v<T, U> && std::is_assignable_v<T&, U> && (std::is_nothrow_constructible_v<T, U> || std::is_nothrow_move_constructible_v<T> || std::is_nothrow_move_constructible_v<E>) constexpr link:#clang-mrdocs-Expected-03[Expected]& operator=(U&& v); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *v* | The object to move assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G> requires std::is_constructible_v<E, G> && std::is_assignable_v<E&, G> && (std::is_nothrow_constructible_v<E, G> || std::is_nothrow_move_constructible_v<T> || std::is_nothrow_move_constructible_v<E>) constexpr link:#clang-mrdocs-Expected-03[Expected]& operator=(link:#clang-mrdocs-Unexpected-02[Unexpected<G>]&& e); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *e* | The object to move assign from |=== == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, const E> constexpr auto link:#clang-mrdocs-Expected-03-and_then-04[and_then](Fn&& f) const &&; ---- [.small]#link:#clang-mrdocs-Expected-03-and_then-04[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E> constexpr auto link:#clang-mrdocs-Expected-03-and_then-0e[and_then](Fn&& f) &&; ---- [.small]#link:#clang-mrdocs-Expected-03-and_then-0e[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E const&> constexpr auto link:#clang-mrdocs-Expected-03-and_then-03[and_then](Fn&& f) const &; ---- [.small]#link:#clang-mrdocs-Expected-03-and_then-03[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E&> constexpr auto link:#clang-mrdocs-Expected-03-and_then-0b95[and_then](Fn&& f) &; ---- [.small]#link:#clang-mrdocs-Expected-03-and_then-0b95[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, const E> constexpr auto and_then(Fn&& f) const &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E> constexpr auto and_then(Fn&& f) &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E const&> constexpr auto and_then(Fn&& f) const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E&> constexpr auto and_then(Fn&& f) &; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> requires std::is_nothrow_constructible_v<T, Args...> constexpr T& link:#clang-mrdocs-Expected-03-emplace-0a[emplace](Args...&&... args) noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-emplace-0a[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Args> requires std::is_nothrow_constructible_v< T, std::initializer_list<U>&, Args...> constexpr T& link:#clang-mrdocs-Expected-03-emplace-0f[emplace]( std::initializer_list<U> il, Args...&&... args) noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-emplace-0f[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> requires std::is_nothrow_constructible_v<T, Args...> constexpr T& emplace(Args...&&... args) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Args> requires std::is_nothrow_constructible_v< T, std::initializer_list<U>&, Args...> constexpr T& emplace( std::initializer_list<U> il, Args...&&... args) noexcept; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E const& link:#clang-mrdocs-Expected-03-error-07[error]() const & noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-error-07[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E& link:#clang-mrdocs-Expected-03-error-0f[error]() & noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-error-0f[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E const&& link:#clang-mrdocs-Expected-03-error-0ea[error]() const && noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-error-0ea[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E&& link:#clang-mrdocs-Expected-03-error-0d[error]() && noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-error-0d[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E const& error() const & noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E& error() & noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E const&& error() const && noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E&& error() && noexcept; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> constexpr E link:#clang-mrdocs-Expected-03-error_or-0c[error_or](G&& e) const &; ---- [.small]#link:#clang-mrdocs-Expected-03-error_or-0c[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> constexpr E link:#clang-mrdocs-Expected-03-error_or-0f[error_or](G&& e) &&; ---- [.small]#link:#clang-mrdocs-Expected-03-error_or-0f[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> constexpr E error_or(G&& e) const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> constexpr E error_or(G&& e) &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr bool has_value() const noexcept; ---- Dereference operators == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T const& link:#clang-mrdocs-Expected-03-operator_star-0f[operator*]() const & noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-operator_star-0f[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T& link:#clang-mrdocs-Expected-03-operator_star-059[operator*]() & noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-operator_star-059[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T const&& link:#clang-mrdocs-Expected-03-operator_star-054[operator*]() const && noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-operator_star-054[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T&& link:#clang-mrdocs-Expected-03-operator_star-02[operator*]() && noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-operator_star-02[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T const& operator*() const & noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T& operator*() & noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T const&& operator*() const && noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T&& operator*() && noexcept; ---- Member access operators == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T const* link:#clang-mrdocs-Expected-03-operator_ptr-0ee[operator‐>]() const noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-operator_ptr-0ee[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T* link:#clang-mrdocs-Expected-03-operator_ptr-0ec[operator‐>]() noexcept; ---- [.small]#link:#clang-mrdocs-Expected-03-operator_ptr-0ec[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T const* operator‐>() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T* operator‐>() noexcept; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, const T> constexpr auto link:#clang-mrdocs-Expected-03-or_else-04[or_else](Fn&& f) const &&; ---- [.small]#link:#clang-mrdocs-Expected-03-or_else-04[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T> constexpr auto link:#clang-mrdocs-Expected-03-or_else-0d[or_else](Fn&& f) &&; ---- [.small]#link:#clang-mrdocs-Expected-03-or_else-0d[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T const&> constexpr auto link:#clang-mrdocs-Expected-03-or_else-05[or_else](Fn&& f) const &; ---- [.small]#link:#clang-mrdocs-Expected-03-or_else-05[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T&> constexpr auto link:#clang-mrdocs-Expected-03-or_else-0a[or_else](Fn&& f) &; ---- [.small]#link:#clang-mrdocs-Expected-03-or_else-0a[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, const T> constexpr auto or_else(Fn&& f) const &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T> constexpr auto or_else(Fn&& f) &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T const&> constexpr auto or_else(Fn&& f) const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T&> constexpr auto or_else(Fn&& f) &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void swap(link:#clang-mrdocs-Expected-03[Expected]& x) noexcept(std::is_nothrow_move_constructible_v<T> && std::is_nothrow_move_constructible_v<E> && std::is_nothrow_swappable_v<T &> && std::is_nothrow_swappable_v<E &>) requires std::is_swappable_v<T> && std::is_swappable_v<E> && std::is_move_constructible_v<T> && std::is_move_constructible_v<E> && (std::is_nothrow_move_constructible_v<T> || std::is_nothrow_move_constructible_v<E>); ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, const E> constexpr auto link:#clang-mrdocs-Expected-03-transform-01[transform](Fn&& f) const &&; ---- [.small]#link:#clang-mrdocs-Expected-03-transform-01[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E> constexpr auto link:#clang-mrdocs-Expected-03-transform-07[transform](Fn&& f) &&; ---- [.small]#link:#clang-mrdocs-Expected-03-transform-07[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E const&> constexpr auto link:#clang-mrdocs-Expected-03-transform-00[transform](Fn&& f) const &; ---- [.small]#link:#clang-mrdocs-Expected-03-transform-00[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E&> constexpr auto link:#clang-mrdocs-Expected-03-transform-0c[transform](Fn&& f) &; ---- [.small]#link:#clang-mrdocs-Expected-03-transform-0c[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, const E> constexpr auto transform(Fn&& f) const &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E> constexpr auto transform(Fn&& f) &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E const&> constexpr auto transform(Fn&& f) const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E&> constexpr auto transform(Fn&& f) &; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, const T> constexpr auto link:#clang-mrdocs-Expected-03-transform_error-07[transform_error](Fn&& f) const &&; ---- [.small]#link:#clang-mrdocs-Expected-03-transform_error-07[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T> constexpr auto link:#clang-mrdocs-Expected-03-transform_error-02[transform_error](Fn&& f) &&; ---- [.small]#link:#clang-mrdocs-Expected-03-transform_error-02[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T const&> constexpr auto link:#clang-mrdocs-Expected-03-transform_error-08[transform_error](Fn&& f) const &; ---- [.small]#link:#clang-mrdocs-Expected-03-transform_error-08[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T&> constexpr auto link:#clang-mrdocs-Expected-03-transform_error-01[transform_error](Fn&& f) &; ---- [.small]#link:#clang-mrdocs-Expected-03-transform_error-01[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, const T> constexpr auto transform_error(Fn&& f) const &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T> constexpr auto transform_error(Fn&& f) &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T const&> constexpr auto transform_error(Fn&& f) const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<T, T&> constexpr auto transform_error(Fn&& f) &; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr T const& link:#clang-mrdocs-Expected-03-value-0cc[value]() const &; ---- [.small]#link:#clang-mrdocs-Expected-03-value-0cc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr T& link:#clang-mrdocs-Expected-03-value-02[value]() &; ---- [.small]#link:#clang-mrdocs-Expected-03-value-02[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr T const&& link:#clang-mrdocs-Expected-03-value-00[value]() const &&; ---- [.small]#link:#clang-mrdocs-Expected-03-value-00[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr T&& link:#clang-mrdocs-Expected-03-value-04[value]() &&; ---- [.small]#link:#clang-mrdocs-Expected-03-value-04[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr T const& value() const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr T& value() &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr T const&& value() const &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr T&& value() &&; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> constexpr T link:#clang-mrdocs-Expected-03-value_or-0d[value_or](U&& v) && noexcept(std::is_nothrow_move_constructible_v<T> && std::is_nothrow_convertible_v<U, T>); ---- [.small]#link:#clang-mrdocs-Expected-03-value_or-0d[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> constexpr T link:#clang-mrdocs-Expected-03-value_or-09[value_or](U&& v) const & noexcept(std::is_nothrow_copy_constructible_v<T> && std::is_nothrow_convertible_v<U, T>); ---- [.small]#link:#clang-mrdocs-Expected-03-value_or-09[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> constexpr T value_or(U&& v) && noexcept(std::is_nothrow_move_constructible_v<T> && std::is_nothrow_convertible_v<U, T>); ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> constexpr T value_or(U&& v) const & noexcept(std::is_nothrow_copy_constructible_v<T> && std::is_nothrow_convertible_v<U, T>); ---- Conversion to `bool` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr explicit operator bool() const noexcept; ---- == Return Value The object converted to `bool` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- E unex_; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- T val_; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class E> requires std::is_void_v<T> class link:#clang-mrdocs-Expected-03[Expected]<T, E>; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-Expected-0c-error_type[`error_type`] | link:#clang-mrdocs-Expected-0c-rebind[`rebind`] | link:#clang-mrdocs-Expected-0c-unexpected_type[`unexpected_type`] | link:#clang-mrdocs-Expected-0c-value_type[`value_type`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Expected-0c-2constructor-0c[`Expected`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-Expected-0c-2destructor-0e[`~Expected`] [.small]#[destructor]# | Destructors | link:#clang-mrdocs-Expected-0c-operator_assign-09[`operator=`] [.small]#[deleted]# | Assignment operators | link:#clang-mrdocs-Expected-0c-and_then-08[`and_then`] | | link:#clang-mrdocs-Expected-0c-emplace[`emplace`] | | link:#clang-mrdocs-Expected-0c-error-03e01[`error`] | | link:#clang-mrdocs-Expected-0c-error_or-0e[`error_or`] | | link:#clang-mrdocs-Expected-0c-has_value[`has_value`] | | link:#clang-mrdocs-Expected-0c-operator_star[`operator*`] | | link:#clang-mrdocs-Expected-0c-or_else-0e3[`or_else`] | | link:#clang-mrdocs-Expected-0c-swap[`swap`] | | link:#clang-mrdocs-Expected-0c-transform-01[`transform`] | | link:#clang-mrdocs-Expected-0c-transform_error-02[`transform_error`] | | link:#clang-mrdocs-Expected-0c-value-093[`value`] | | link:#clang-mrdocs-Expected-0c-2conversion[`operator bool`] | Conversion to `bool` |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-Expected-0c-unex_[`unex_`] [.small]#[variant member]# | link:#clang-mrdocs-Expected-0c-void_[`void_`] [.small]#[variant member]# |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-swap-0c[clang::mrdocs::swap]` | | `link:#clang-mrdocs-operator_eq-0f[clang::mrdocs::operator==]` | Equality operator | `link:#clang-mrdocs-operator_eq-04c[clang::mrdocs::operator==]` | Equality operator | `link:#clang-mrdocs-Expected-03[clang::mrdocs::Expected]` | A container holding an error or a value. |=== == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using error_type = E; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> using rebind = link:#clang-mrdocs-Expected-03[Expected<U, error_type>]; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using unexpected_type = link:#clang-mrdocs-Unexpected-02[Unexpected<E>]; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using value_type = T; ---- Constructors == Synopses Declared in `<mrdocs/Support/Expected.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-0c-2constructor-052[Expected]() noexcept; ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-052[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-0c-2constructor-05c[Expected](link:#clang-mrdocs-Expected-0c[Expected] const& other) = default; ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-05c[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-0c-2constructor-032[Expected](link:#clang-mrdocs-Expected-0c[Expected] const& x) noexcept(std::is_nothrow_copy_constructible_v<E>) requires std::is_copy_constructible_v<E> && (!std::is_trivially_copy_constructible_v<E>); ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-032[_» more..._]# Move constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-0c-2constructor-03f[Expected](link:#clang-mrdocs-Expected-0c[Expected]&& other) = default; ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-03f[_» more..._]# Move constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-0c-2constructor-02[Expected](link:#clang-mrdocs-Expected-0c[Expected]&& x) noexcept(std::is_nothrow_move_constructible_v<E>) requires std::is_move_constructible_v<E> && (!std::is_trivially_move_constructible_v<E>); ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-02[_» more..._]# Construct from `in_place_t` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit link:#clang-mrdocs-Expected-0c-2constructor-058[Expected](std::in_place_t value) noexcept; ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-058[_» more..._]# Construct from `Unexpected` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> requires std::is_constructible_v<E, G const&> constexpr explicit(!std::is_convertible_v<const G &, E>) link:#clang-mrdocs-Expected-0c-2constructor-09[Expected](link:#clang-mrdocs-Unexpected-02[Unexpected<G>] const& u) noexcept(std::is_nothrow_constructible_v<E, const G &>); ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-09[_» more..._]# Construct from `Unexpected` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> requires std::is_constructible_v<E, G> constexpr explicit(!std::is_convertible_v<G, E>) link:#clang-mrdocs-Expected-0c-2constructor-0d[Expected](link:#clang-mrdocs-Unexpected-02[Unexpected<G>]&& u) noexcept(std::is_nothrow_constructible_v<E, G>); ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-0d[_» more..._]# Construct from `Expected` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class G> requires std::is_void_v<U> && std::is_constructible_v<E, G const&> && (!constructible_from_expected<U, G>) constexpr explicit(!std::is_convertible_v<const G &, E>) link:#clang-mrdocs-Expected-0c-2constructor-04d[Expected](link:#clang-mrdocs-Expected-03[Expected<U, G>] const& x) noexcept(std::is_nothrow_constructible_v<E, const G &>); ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-04d[_» more..._]# Construct from `Expected` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class G> requires std::is_void_v<U> && std::is_constructible_v<E, G> && (!constructible_from_expected<U, G>) constexpr explicit(!std::is_convertible_v<G, E>) link:#clang-mrdocs-Expected-0c-2constructor-00[Expected](link:#clang-mrdocs-Expected-03[Expected<U, G>]&& x) noexcept(std::is_nothrow_constructible_v<E, G>); ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-00[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> requires std::is_constructible_v<E, Args...> constexpr explicit link:#clang-mrdocs-Expected-0c-2constructor-036[Expected]( link:#clang-mrdocs-unexpect_t[unexpect_t], Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, Args...>); ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-036[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Args> requires std::is_constructible_v<E, std::initializer_list<U>&, Args...> constexpr explicit link:#clang-mrdocs-Expected-0c-2constructor-04e[Expected]( link:#clang-mrdocs-unexpect_t[unexpect_t], std::initializer_list<U> il, Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, std::initializer_list<U> &, Args...>); ---- [.small]#link:#clang-mrdocs-Expected-0c-2constructor-04e[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Expected() noexcept; ---- Copy constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Expected(link:#clang-mrdocs-Expected-0c[Expected] const& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Copy constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Expected(link:#clang-mrdocs-Expected-0c[Expected] const& x) noexcept(std::is_nothrow_copy_constructible_v<E>) requires std::is_copy_constructible_v<E> && (!std::is_trivially_copy_constructible_v<E>); ---- == Parameters [cols=2] |=== | Name | Description | *x* | The object to copy construct from |=== Move constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Expected(link:#clang-mrdocs-Expected-0c[Expected]&& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Move constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Expected(link:#clang-mrdocs-Expected-0c[Expected]&& x) noexcept(std::is_nothrow_move_constructible_v<E>) requires std::is_move_constructible_v<E> && (!std::is_trivially_move_constructible_v<E>); ---- == Parameters [cols=2] |=== | Name | Description | *x* | The object to move construct from |=== Construct from `in_place_t` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit Expected(std::in_place_t value) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *value* | The object to construct from |=== Construct from `Unexpected` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> requires std::is_constructible_v<E, G const&> constexpr explicit(!std::is_convertible_v<const G &, E>) Expected(link:#clang-mrdocs-Unexpected-02[Unexpected<G>] const& u) noexcept(std::is_nothrow_constructible_v<E, const G &>); ---- == Parameters [cols=2] |=== | Name | Description | *u* | The object to copy construct from |=== Construct from `Unexpected` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> requires std::is_constructible_v<E, G> constexpr explicit(!std::is_convertible_v<G, E>) Expected(link:#clang-mrdocs-Unexpected-02[Unexpected<G>]&& u) noexcept(std::is_nothrow_constructible_v<E, G>); ---- == Parameters [cols=2] |=== | Name | Description | *u* | The object to move construct from |=== Construct from `Expected` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class G> requires std::is_void_v<U> && std::is_constructible_v<E, G const&> && (!constructible_from_expected<U, G>) constexpr explicit(!std::is_convertible_v<const G &, E>) Expected(link:#clang-mrdocs-Expected-03[Expected<U, G>] const& x) noexcept(std::is_nothrow_constructible_v<E, const G &>); ---- == Parameters [cols=2] |=== | Name | Description | *x* | The object to copy construct from |=== Construct from `Expected` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class G> requires std::is_void_v<U> && std::is_constructible_v<E, G> && (!constructible_from_expected<U, G>) constexpr explicit(!std::is_convertible_v<G, E>) Expected(link:#clang-mrdocs-Expected-03[Expected<U, G>]&& x) noexcept(std::is_nothrow_constructible_v<E, G>); ---- == Parameters [cols=2] |=== | Name | Description | *x* | The object to move construct from |=== == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> requires std::is_constructible_v<E, Args...> constexpr explicit Expected( link:#clang-mrdocs-unexpect_t[unexpect_t], Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, Args...>); ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Args> requires std::is_constructible_v<E, std::initializer_list<U>&, Args...> constexpr explicit Expected( link:#clang-mrdocs-unexpect_t[unexpect_t], std::initializer_list<U> il, Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, std::initializer_list<U> &, Args...>); ---- Destructors == Synopses Declared in `<mrdocs/Support/Expected.hpp>` Destructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-0c-2destructor-06[~Expected]() = default; ---- [.small]#link:#clang-mrdocs-Expected-0c-2destructor-06[_» more..._]# Destructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-0c-2destructor-07[~Expected]() requires (!std::is_trivially_destructible_v<E>); ---- [.small]#link:#clang-mrdocs-Expected-0c-2destructor-07[_» more..._]# Destructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr ~Expected() = default; ---- Destructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr ~Expected() requires (!std::is_trivially_destructible_v<E>); ---- Assignment operators == Synopses Declared in `<mrdocs/Support/Expected.hpp>` Copy assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-0c[Expected]& link:#clang-mrdocs-Expected-0c-operator_assign-0f[operator=](link:#clang-mrdocs-Expected-0c[Expected] const& other) = delete; ---- [.small]#link:#clang-mrdocs-Expected-0c-operator_assign-0f[_» more..._]# Copy assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-0c[Expected]& link:#clang-mrdocs-Expected-0c-operator_assign-03[operator=](link:#clang-mrdocs-Expected-0c[Expected] const& x) noexcept(std::is_nothrow_copy_constructible_v<E> && std::is_nothrow_copy_assignable_v<E>) requires std::is_copy_constructible_v<E> && std::is_copy_assignable_v<E>; ---- [.small]#link:#clang-mrdocs-Expected-0c-operator_assign-03[_» more..._]# Move assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-0c[Expected]& link:#clang-mrdocs-Expected-0c-operator_assign-08[operator=](link:#clang-mrdocs-Expected-0c[Expected]&& x) noexcept(std::is_nothrow_move_constructible_v<E> && std::is_nothrow_move_assignable_v<E>) requires std::is_move_constructible_v<E> && std::is_move_assignable_v<E>; ---- [.small]#link:#clang-mrdocs-Expected-0c-operator_assign-08[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G> requires std::is_constructible_v<E, G const&> && std::is_assignable_v<E&, G const&> constexpr link:#clang-mrdocs-Expected-0c[Expected]& link:#clang-mrdocs-Expected-0c-operator_assign-0ad[operator=](link:#clang-mrdocs-Unexpected-02[Unexpected<G>] const& e); ---- [.small]#link:#clang-mrdocs-Expected-0c-operator_assign-0ad[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G> requires std::is_constructible_v<E, G> && std::is_assignable_v<E&, G> constexpr link:#clang-mrdocs-Expected-0c[Expected]& link:#clang-mrdocs-Expected-0c-operator_assign-0ac[operator=](link:#clang-mrdocs-Unexpected-02[Unexpected<G>]&& e); ---- [.small]#link:#clang-mrdocs-Expected-0c-operator_assign-0ac[_» more..._]# Copy assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-0c[Expected]& operator=(link:#clang-mrdocs-Expected-0c[Expected] const& other) = delete; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Copy assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-0c[Expected]& operator=(link:#clang-mrdocs-Expected-0c[Expected] const& x) noexcept(std::is_nothrow_copy_constructible_v<E> && std::is_nothrow_copy_assignable_v<E>) requires std::is_copy_constructible_v<E> && std::is_copy_assignable_v<E>; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *x* | The object to copy assign from |=== Move assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Expected-0c[Expected]& operator=(link:#clang-mrdocs-Expected-0c[Expected]&& x) noexcept(std::is_nothrow_move_constructible_v<E> && std::is_nothrow_move_assignable_v<E>) requires std::is_move_constructible_v<E> && std::is_move_assignable_v<E>; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *x* | The object to move assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G> requires std::is_constructible_v<E, G const&> && std::is_assignable_v<E&, G const&> constexpr link:#clang-mrdocs-Expected-0c[Expected]& operator=(link:#clang-mrdocs-Unexpected-02[Unexpected<G>] const& e); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *e* | The object to copy assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G> requires std::is_constructible_v<E, G> && std::is_assignable_v<E&, G> constexpr link:#clang-mrdocs-Expected-0c[Expected]& operator=(link:#clang-mrdocs-Unexpected-02[Unexpected<G>]&& e); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *e* | The object to move assign from |=== == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, const E> constexpr auto link:#clang-mrdocs-Expected-0c-and_then-09[and_then](Fn&& f) const &&; ---- [.small]#link:#clang-mrdocs-Expected-0c-and_then-09[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E> constexpr auto link:#clang-mrdocs-Expected-0c-and_then-0f[and_then](Fn&& f) &&; ---- [.small]#link:#clang-mrdocs-Expected-0c-and_then-0f[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E const&> constexpr auto link:#clang-mrdocs-Expected-0c-and_then-0bc[and_then](Fn&& f) const &; ---- [.small]#link:#clang-mrdocs-Expected-0c-and_then-0bc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E&> constexpr auto link:#clang-mrdocs-Expected-0c-and_then-0b4[and_then](Fn&& f) &; ---- [.small]#link:#clang-mrdocs-Expected-0c-and_then-0b4[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, const E> constexpr auto and_then(Fn&& f) const &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E> constexpr auto and_then(Fn&& f) &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E const&> constexpr auto and_then(Fn&& f) const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E&> constexpr auto and_then(Fn&& f) &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void emplace() noexcept; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E const& link:#clang-mrdocs-Expected-0c-error-03e04[error]() const & noexcept; ---- [.small]#link:#clang-mrdocs-Expected-0c-error-03e04[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E& link:#clang-mrdocs-Expected-0c-error-0c[error]() & noexcept; ---- [.small]#link:#clang-mrdocs-Expected-0c-error-0c[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E const&& link:#clang-mrdocs-Expected-0c-error-0d[error]() const && noexcept; ---- [.small]#link:#clang-mrdocs-Expected-0c-error-0d[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E&& link:#clang-mrdocs-Expected-0c-error-08[error]() && noexcept; ---- [.small]#link:#clang-mrdocs-Expected-0c-error-08[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E const& error() const & noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E& error() & noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E const&& error() const && noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E&& error() && noexcept; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> constexpr E link:#clang-mrdocs-Expected-0c-error_or-0bb[error_or](G&& e) const &; ---- [.small]#link:#clang-mrdocs-Expected-0c-error_or-0bb[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> constexpr E link:#clang-mrdocs-Expected-0c-error_or-0bf[error_or](G&& e) &&; ---- [.small]#link:#clang-mrdocs-Expected-0c-error_or-0bf[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> constexpr E error_or(G&& e) const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class G = E> constexpr E error_or(G&& e) &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr bool has_value() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void operator*() const noexcept; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto link:#clang-mrdocs-Expected-0c-or_else-00[or_else](Fn&& f) const &&; ---- [.small]#link:#clang-mrdocs-Expected-0c-or_else-00[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto link:#clang-mrdocs-Expected-0c-or_else-0ed[or_else](Fn&& f) &&; ---- [.small]#link:#clang-mrdocs-Expected-0c-or_else-0ed[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto link:#clang-mrdocs-Expected-0c-or_else-06[or_else](Fn&& f) const &; ---- [.small]#link:#clang-mrdocs-Expected-0c-or_else-06[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto link:#clang-mrdocs-Expected-0c-or_else-0d[or_else](Fn&& f) &; ---- [.small]#link:#clang-mrdocs-Expected-0c-or_else-0d[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto or_else(Fn&& f) const &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto or_else(Fn&& f) &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto or_else(Fn&& f) const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto or_else(Fn&& f) &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void swap(link:#clang-mrdocs-Expected-0c[Expected]& x) noexcept(std::is_nothrow_swappable_v<E &> && std::is_nothrow_move_constructible_v<E>) requires std::is_swappable_v<E> && std::is_move_constructible_v<E>; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, const E> constexpr auto link:#clang-mrdocs-Expected-0c-transform-03[transform](Fn&& f) const &&; ---- [.small]#link:#clang-mrdocs-Expected-0c-transform-03[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E> constexpr auto link:#clang-mrdocs-Expected-0c-transform-09[transform](Fn&& f) &&; ---- [.small]#link:#clang-mrdocs-Expected-0c-transform-09[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E const&> constexpr auto link:#clang-mrdocs-Expected-0c-transform-07[transform](Fn&& f) const &; ---- [.small]#link:#clang-mrdocs-Expected-0c-transform-07[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E&> constexpr auto link:#clang-mrdocs-Expected-0c-transform-08[transform](Fn&& f) &; ---- [.small]#link:#clang-mrdocs-Expected-0c-transform-08[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, const E> constexpr auto transform(Fn&& f) const &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E> constexpr auto transform(Fn&& f) &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E const&> constexpr auto transform(Fn&& f) const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> requires std::is_constructible_v<E, E&> constexpr auto transform(Fn&& f) &; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto link:#clang-mrdocs-Expected-0c-transform_error-09[transform_error](Fn&& f) const &&; ---- [.small]#link:#clang-mrdocs-Expected-0c-transform_error-09[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto link:#clang-mrdocs-Expected-0c-transform_error-01[transform_error](Fn&& f) &&; ---- [.small]#link:#clang-mrdocs-Expected-0c-transform_error-01[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto link:#clang-mrdocs-Expected-0c-transform_error-05[transform_error](Fn&& f) const &; ---- [.small]#link:#clang-mrdocs-Expected-0c-transform_error-05[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto link:#clang-mrdocs-Expected-0c-transform_error-0b[transform_error](Fn&& f) &; ---- [.small]#link:#clang-mrdocs-Expected-0c-transform_error-0b[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto transform_error(Fn&& f) const &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto transform_error(Fn&& f) &&; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto transform_error(Fn&& f) const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Fn> constexpr auto transform_error(Fn&& f) &; ---- == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void link:#clang-mrdocs-Expected-0c-value-0e[value]() const &; ---- [.small]#link:#clang-mrdocs-Expected-0c-value-0e[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void link:#clang-mrdocs-Expected-0c-value-09f[value]() &&; ---- [.small]#link:#clang-mrdocs-Expected-0c-value-09f[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void value() const &; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void value() &&; ---- Conversion to `bool` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr explicit operator bool() const noexcept; ---- == Return Value The object converted to `bool` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- E unex_; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-0c[/* implementation-defined */] void_; ---- == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ExplicitInfo; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ExplicitInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-ExplicitInfo-Implicit[`Implicit`] | Whether an explicit‐specifier was user‐written. | link:#clang-mrdocs-ExplicitInfo-Kind[`Kind`] | The evaluated exception specification. | link:#clang-mrdocs-ExplicitInfo-Operand[`Operand`] | The operand of the explicit‐specifier, if any. |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-toString-04[`toString`] | Convert ExplicitInfo to a string. |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-ExplicitInfo[ExplicitInfo] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Whether an explicit‐specifier was user‐written. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool Implicit = true; ---- The evaluated exception specification. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ExplicitKind[ExplicitKind] Kind = ExplicitKind::False; ---- The operand of the explicit‐specifier, if any. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string Operand; ---- Represents an expression == Synopsis Declared in `<mrdocs/Metadata/Expression.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ExprInfo; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ExprInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-ExprInfo-Written[`Written`] | The expression, as written |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-ConstantExprInfo[`ConstantExprInfo`] | Represents an expression with a (possibly known) value |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Expression.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-ExprInfo[ExprInfo] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== The expression, as written == Synopsis Declared in `<mrdocs/Metadata/Expression.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string Written; ---- A format string with source location. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> struct FormatString; ---- == Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-FormatString-2constructor[`FormatString`] [.small]#[constructor]# |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-FormatString-fs[`fs`] | link:#clang-mrdocs-FormatString-loc[`loc`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-formatError[`formatError`] | Return a formatted error. |=== == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> FormatString( T const& fs_, std::source_location loc_ = source_location::current()); ---- == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view fs; ---- == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::source_location loc; ---- Info for friend declarations. == Synopsis Declared in `<mrdocs/Metadata/Info/Friend.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct FriendInfo final ---- == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-FriendInfo-Type[`Type`] | Befriended type. | link:#clang-mrdocs-FriendInfo-id[`id`] | Befriended symbol. |=== == Description ‐ Friendship is not transitive ‐ Friendship is not inherited ‐ Access specifiers have no effect on the meaning of friend declarations Befriended type. == Synopsis Declared in `<mrdocs/Metadata/Info/Friend.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] Type = std::nullopt; ---- Befriended symbol. == Synopsis Declared in `<mrdocs/Metadata/Info/Friend.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-SymbolID[SymbolID] id = = SymbolID::invalid; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct FunctionInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Function>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Function>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-FunctionInfo-2constructor[`FunctionInfo`] [.small]#[constructor]# | Construct from `SymbolID` | link:#clang-mrdocs-FunctionInfo-operator_3way-03[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-FunctionInfo-isConcept[`isConcept`] | link:#clang-mrdocs-FunctionInfo-isEnum[`isEnum`] | link:#clang-mrdocs-FunctionInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-FunctionInfo-isFunction[`isFunction`] | link:#clang-mrdocs-FunctionInfo-isGuide[`isGuide`] | link:#clang-mrdocs-FunctionInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-FunctionInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-FunctionInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-FunctionInfo-isRecord[`isRecord`] | link:#clang-mrdocs-FunctionInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-FunctionInfo-isUsing[`isUsing`] | link:#clang-mrdocs-FunctionInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-FunctionInfo-Attributes[`Attributes`] | | link:#clang-mrdocs-FunctionInfo-Class[`Class`] | The class of function this is | link:#clang-mrdocs-FunctionInfo-Constexpr[`Constexpr`] | | link:#clang-mrdocs-FunctionInfo-Explicit[`Explicit`] | | link:#clang-mrdocs-FunctionInfo-HasOverrideAttr[`HasOverrideAttr`] | | link:#clang-mrdocs-FunctionInfo-HasTrailingReturn[`HasTrailingReturn`] | | link:#clang-mrdocs-FunctionInfo-IsConst[`IsConst`] | | link:#clang-mrdocs-FunctionInfo-IsDefaulted[`IsDefaulted`] | | link:#clang-mrdocs-FunctionInfo-IsDeleted[`IsDeleted`] | | link:#clang-mrdocs-FunctionInfo-IsDeletedAsWritten[`IsDeletedAsWritten`] | | link:#clang-mrdocs-FunctionInfo-IsExplicitObjectMemberFunction[`IsExplicitObjectMemberFunction`] | | link:#clang-mrdocs-FunctionInfo-IsExplicitlyDefaulted[`IsExplicitlyDefaulted`] | | link:#clang-mrdocs-FunctionInfo-IsFinal[`IsFinal`] | | link:#clang-mrdocs-FunctionInfo-IsNoReturn[`IsNoReturn`] | | link:#clang-mrdocs-FunctionInfo-IsNodiscard[`IsNodiscard`] | | link:#clang-mrdocs-FunctionInfo-IsPure[`IsPure`] | | link:#clang-mrdocs-FunctionInfo-IsRecordMethod[`IsRecordMethod`] | | link:#clang-mrdocs-FunctionInfo-IsVariadic[`IsVariadic`] | | link:#clang-mrdocs-FunctionInfo-IsVirtual[`IsVirtual`] | | link:#clang-mrdocs-FunctionInfo-IsVirtualAsWritten[`IsVirtualAsWritten`] | | link:#clang-mrdocs-FunctionInfo-IsVolatile[`IsVolatile`] | | link:#clang-mrdocs-FunctionInfo-Noexcept[`Noexcept`] | | link:#clang-mrdocs-FunctionInfo-OverloadedOperator[`OverloadedOperator`] | | link:#clang-mrdocs-FunctionInfo-Params[`Params`] | List of parameters. | link:#clang-mrdocs-FunctionInfo-RefQualifier[`RefQualifier`] | | link:#clang-mrdocs-FunctionInfo-Requires[`Requires`] | | link:#clang-mrdocs-FunctionInfo-ReturnType[`ReturnType`] | Info about the return type of this function. | link:#clang-mrdocs-FunctionInfo-StorageClass[`StorageClass`] | | link:#clang-mrdocs-FunctionInfo-Template[`Template`] | When present, this function is a template or specialization. |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-FunctionInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. | link:#clang-mrdocs-overrides[`overrides`] | Determine if one function would override the other |=== Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit FunctionInfo(link:#clang-mrdocs-SymbolID[SymbolID] const& ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to copy construct from |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Info/Function.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-FunctionInfo-operator_3way-09[operator<=>](link:#clang-mrdocs-FunctionInfo[FunctionInfo] const& other) const; ---- [.small]#link:#clang-mrdocs-FunctionInfo-operator_3way-09[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-FunctionInfo-operator_3way-0f[operator<=>](link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Function>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-FunctionInfo-operator_3way-0f[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-FunctionInfo[FunctionInfo] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Function>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> Attributes; ---- The class of function this is == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-FunctionClass[FunctionClass] Class = FunctionClass::Normal; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ConstexprKind[ConstexprKind] Constexpr = ConstexprKind::None; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ExplicitInfo[ExplicitInfo] Explicit; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool HasOverrideAttr = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool HasTrailingReturn = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsConst = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsDefaulted = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsDeleted = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsDeletedAsWritten = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsExplicitObjectMemberFunction = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsExplicitlyDefaulted = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsFinal = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsNoReturn = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsNodiscard = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsPure = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsRecordMethod = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsVariadic = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsVirtual = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsVirtualAsWritten = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsVolatile = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-NoexceptInfo[NoexceptInfo] Noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OperatorKind[OperatorKind] OverloadedOperator = OperatorKind::None; ---- List of parameters. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Param> Params; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ReferenceKind[ReferenceKind] RefQualifier = ReferenceKind::None; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ExprInfo[ExprInfo] Requires; ---- Info about the return type of this function. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] ReturnType = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-StorageClassKind[StorageClassKind] StorageClass = StorageClassKind::None; ---- When present, this function is a template or specialization. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<TemplateInfo> Template; ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct FunctionTypeInfo final : link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Function>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Function>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-FunctionTypeInfo-operator_3way-09[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-FunctionTypeInfo-isArray[`isArray`] | link:#clang-mrdocs-FunctionTypeInfo-isAuto[`isAuto`] | link:#clang-mrdocs-FunctionTypeInfo-isDecltype[`isDecltype`] | link:#clang-mrdocs-FunctionTypeInfo-isFunction[`isFunction`] | link:#clang-mrdocs-FunctionTypeInfo-isLValueReference[`isLValueReference`] | link:#clang-mrdocs-FunctionTypeInfo-isMemberPointer[`isMemberPointer`] | link:#clang-mrdocs-FunctionTypeInfo-isNamed[`isNamed`] | link:#clang-mrdocs-FunctionTypeInfo-isPointer[`isPointer`] | link:#clang-mrdocs-FunctionTypeInfo-isRValueReference[`isRValueReference`] |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-FunctionTypeInfo-ExceptionSpec[`ExceptionSpec`] | link:#clang-mrdocs-FunctionTypeInfo-IsVariadic[`IsVariadic`] | link:#clang-mrdocs-FunctionTypeInfo-ParamTypes[`ParamTypes`] | link:#clang-mrdocs-FunctionTypeInfo-RefQualifier[`RefQualifier`] | link:#clang-mrdocs-FunctionTypeInfo-ReturnType[`ReturnType`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-FunctionTypeInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-innerType-0f5[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerType-0f7[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0c[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0d[`innerTypePtr`] | Return the inner type. |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-FunctionTypeInfo-operator_3way-00[operator<=>](link:#clang-mrdocs-FunctionTypeInfo[FunctionTypeInfo] const& rhs) const; ---- [.small]#link:#clang-mrdocs-FunctionTypeInfo-operator_3way-00[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-FunctionTypeInfo-operator_3way-04[operator<=>](link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Function>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-FunctionTypeInfo-operator_3way-04[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-FunctionTypeInfo[FunctionTypeInfo] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Function>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isArray() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isAuto() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isDecltype() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isLValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isMemberPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamed() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-NoexceptInfo[NoexceptInfo] ExceptionSpec; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsVariadic = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Polymorphic<TypeInfo>> ParamTypes; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ReferenceKind[ReferenceKind] RefQualifier = ReferenceKind::None; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] ReturnType = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TypeKind[TypeKind] kind_id; ---- Base class for documentation generators. == Synopsis Declared in `<mrdocs/Generator.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Generator; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Generator-2destructor[`~Generator`] [.small]#[destructor]# [.small]#[virtual]# | Destructor. | link:#clang-mrdocs-Generator-build-03[`build`] | Build reference documentation for the corpus. | link:#clang-mrdocs-Generator-buildOne-0b[`buildOne`] | `buildOne` overloads | link:#clang-mrdocs-Generator-buildOneString[`buildOneString`] | Build the reference as a single page to a string. | link:#clang-mrdocs-Generator-displayName[`displayName`] [.small]#[virtual]# | Return the display name of the generator. | link:#clang-mrdocs-Generator-fileExtension[`fileExtension`] [.small]#[virtual]# | Return the extension or tag of the generator. | link:#clang-mrdocs-Generator-id[`id`] [.small]#[virtual]# | Return the symbolic name of the generator. |=== Destructor. == Synopsis Declared in `<mrdocs/Generator.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual ~Generator() noexcept; ---- Build reference documentation for the corpus. == Synopses Declared in `<mrdocs/Generator.hpp>` Build reference documentation for the corpus. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] link:#clang-mrdocs-Generator-build-04[build](link:#clang-mrdocs-Corpus[Corpus] const& corpus) const; ---- [.small]#link:#clang-mrdocs-Generator-build-04[_» more..._]# Build reference documentation for the corpus. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Expected-03[Expected<void>] link:#clang-mrdocs-Generator-build-08[build]( std::string_view outputPath, link:#clang-mrdocs-Corpus[Corpus] const& corpus) const; ---- [.small]#link:#clang-mrdocs-Generator-build-08[_» more..._]# == Return Value The error, if any occurred. == Parameters [cols=2] |=== | Name | Description | *corpus* | The symbols to emit. The generator may modify the contents of the object before returning. | *outputPath* | A directory or filename. |=== Build reference documentation for the corpus. == Synopsis Declared in `<mrdocs/Generator.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] build(link:#clang-mrdocs-Corpus[Corpus] const& corpus) const; ---- == Description This function invokes the generator to emit the documentation using the corpus configuration options to determine the output location. == Return Value The error, if any occurred. == Parameters [cols=2] |=== | Name | Description | *corpus* | The symbols to emit. The generator may modify the contents of the object before returning. |=== Build reference documentation for the corpus. == Synopsis Declared in `<mrdocs/Generator.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Expected-03[Expected<void>] build( std::string_view outputPath, link:#clang-mrdocs-Corpus[Corpus] const& corpus) const; ---- == Description This function invokes the generator to emit the documentation using `outputPath` as a parameter indicating where the output should go. This can be a directory or a filename depending on the generator and how it is configured. The default implentation assumes the output is single‐page and emits the file `reference.ext` using link:#clang-mrdocs-Generator-buildOne-0b[`buildOne`] to generate the content. The typical implementation will have behavior similar to the default implementation if the output is single‐page, or will iterate over the symbols in the corpus to generate multiple files if the output is multi‐page. == Return Value The error, if any occurred. == Parameters [cols=2] |=== | Name | Description | *outputPath* | A directory or filename. | *corpus* | The symbols to emit. The generator may modify the contents of the object before returning. |=== `buildOne` overloads == Synopses Declared in `<mrdocs/Generator.hpp>` Build the reference as a single page to a file. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] link:#clang-mrdocs-Generator-buildOne-08[buildOne]( std::string_view fileName, link:#clang-mrdocs-Corpus[Corpus] const& corpus) const; ---- [.small]#link:#clang-mrdocs-Generator-buildOne-08[_» more..._]# Build reference documentation for the corpus. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Expected-03[Expected<void>] link:#clang-mrdocs-Generator-buildOne-01[buildOne]( std::ostream& os, link:#clang-mrdocs-Corpus[Corpus] const& corpus) const = 0; ---- [.small]#link:#clang-mrdocs-Generator-buildOne-01[_» more..._]# == Return Value The error, if any occurred. == Parameters [cols=2] |=== | Name | Description | *fileName* | The file to write. If the file already exists, it will be overwritten. | *corpus* | The metadata to emit. | *os* | The stream to write to. |=== Build the reference as a single page to a file. == Synopsis Declared in `<mrdocs/Generator.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] buildOne( std::string_view fileName, link:#clang-mrdocs-Corpus[Corpus] const& corpus) const; ---- == Description == Thread Safety * Different `corpus` object: may be called concurrently. * Same `corpus` object: may not be called concurrently. == Return Value The error, if any occurred. == Parameters [cols=2] |=== | Name | Description | *fileName* | The file to write. If the file already exists, it will be overwritten. | *corpus* | The metadata to emit. |=== Build reference documentation for the corpus. == Synopsis Declared in `<mrdocs/Generator.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Expected-03[Expected<void>] buildOne( std::ostream& os, link:#clang-mrdocs-Corpus[Corpus] const& corpus) const = 0; ---- == Description This function invokes the generator to emit the full documentation to an output stream, as a single entity. == Thread Safety * Different `corpus` object: may be called concurrently. * Same `corpus` object: may not be called concurrently. == Return Value The error, if any occurred. == Parameters [cols=2] |=== | Name | Description | *os* | The stream to write to. | *corpus* | The metadata to emit. |=== Build the reference as a single page to a string. == Synopsis Declared in `<mrdocs/Generator.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] buildOneString( std::string& dest, link:#clang-mrdocs-Corpus[Corpus] const& corpus) const; ---- == Return Value The error, if any occurred. == Parameters [cols=2] |=== | Name | Description | *dest* | The string to hold the result. For the duration of the call, this must not be accessed by any other threads. | *corpus* | The metadata to emit. |=== Return the display name of the generator. == Synopsis Declared in `<mrdocs/Generator.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::string_view displayName() const noexcept = 0; ---- == Return Value the display name of the generator. Return the extension or tag of the generator. == Synopsis Declared in `<mrdocs/Generator.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::string_view fileExtension() const noexcept = 0; ---- == Description This should be in all lower case. Examples of tags are: * "adoc" Asciidoctor * "xml" XML * "html" HTML The returned string should not include a leading period. == Return Value the extension or tag of the generator. Return the symbolic name of the generator. == Synopsis Declared in `<mrdocs/Generator.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::string_view id() const noexcept = 0; ---- == Description This is a short, unique string which identifies the generator in command line options and in configuration files. == Return Value the symbolic name of the generator. A dynamic list of Generator == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Generators; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-Generators-const_iterator[`const_iterator`] | link:#clang-mrdocs-Generators-const_reference[`const_reference`] | link:#clang-mrdocs-Generators-difference_type[`difference_type`] | link:#clang-mrdocs-Generators-iterator[`iterator`] | link:#clang-mrdocs-Generators-reference[`reference`] | link:#clang-mrdocs-Generators-size_type[`size_type`] | link:#clang-mrdocs-Generators-value_type[`value_type`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Generators-2destructor[`~Generators`] [.small]#[destructor]# [.small]#[virtual]# | Destructor. | link:#clang-mrdocs-Generators-begin[`begin`] [.small]#[virtual]# | Return an iterator to the beginning. | link:#clang-mrdocs-Generators-end[`end`] [.small]#[virtual]# | Return an iterator to the end. | link:#clang-mrdocs-Generators-find[`find`] [.small]#[virtual]# | Return a pointer to the matching generator. |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Generators-2constructor[`Generators`] [.small]#[constructor]# | Default constructor |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-getGenerators[`getGenerators`] | Return a reference to the global Generators instance. |=== == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_iterator = link:#clang-mrdocs-Generators-iterator[iterator]; ---- == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_reference = link:#clang-mrdocs-Generators-value_type[value_type] const&; ---- == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using difference_type = std::ptrdiff_t; ---- == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using iterator = link:#clang-mrdocs-Generators-value_type[value_type] const*; ---- == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using reference = link:#clang-mrdocs-Generators-value_type[value_type] const&; ---- == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using size_type = std::size_t; ---- == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using value_type = link:#clang-mrdocs-Generator[Generator] const*; ---- Destructor. == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual ~Generators() noexcept; ---- Return an iterator to the beginning. == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Generators-iterator[iterator] begin() const noexcept = 0; ---- == Return Value an iterator to the beginning. Return an iterator to the end. == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Generators-iterator[iterator] end() const noexcept = 0; ---- == Return Value an iterator to the end. Return a pointer to the matching generator. == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual link:#clang-mrdocs-Generator[Generator] const* find(std::string_view name) const noexcept = 0; ---- == Return Value A pointer to the generator, or `nullptr`. == Parameters [cols=2] |=== | Name | Description | *name* | The name of the generator. The name must be an exact match, including case. |=== Default constructor == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Generators() noexcept = default; ---- A glob pattern matcher == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class GlobPattern; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-GlobPattern-2constructor-02[`GlobPattern`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-GlobPattern-2destructor[`~GlobPattern`] [.small]#[destructor]# | Destructor | link:#clang-mrdocs-GlobPattern-operator_assign-0f[`operator=`] | Assignment operators | link:#clang-mrdocs-GlobPattern-isLiteral[`isLiteral`] | Checks if the glob pattern is a literal string. | link:#clang-mrdocs-GlobPattern-match[`match`] | Matches the given string against the glob pattern. | link:#clang-mrdocs-GlobPattern-matchPatternPrefix[`matchPatternPrefix`] | Matches the start of a given string against the glob pattern. | link:#clang-mrdocs-GlobPattern-pattern[`pattern`] | Returns the glob pattern. |=== == Static Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-GlobPattern-create-06[`create`] | Constructs a GlobPattern with the given pattern. |=== == Description * "" matches all characters except delimiters. * "" matches all characters * "?" matches any single character. * "[<chars>]" matches one character in the bracket. * "[<char>‐<char>]" matches one character in the bracket range. * "[ˆ<chars>]" or "[!<chars>]" matches one character not in the bracket. * "{<glob>,...}" matches one of the globs in the list. * "" escapes the next character so it is treated as a literal. Nested brace expansions "{<glob>,"{<glob>,...}",...}" are not supported. Constructors == Synopses Declared in `<mrdocs/Support/Glob.hpp>` Construct an empty GlobPattern. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-GlobPattern-2constructor-0f[GlobPattern](); ---- [.small]#link:#clang-mrdocs-GlobPattern-2constructor-0f[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-GlobPattern-2constructor-0d[GlobPattern](link:#clang-mrdocs-GlobPattern[GlobPattern] const& other); ---- [.small]#link:#clang-mrdocs-GlobPattern-2constructor-0d[_» more..._]# Move constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-GlobPattern-2constructor-08[GlobPattern](link:#clang-mrdocs-GlobPattern[GlobPattern]&& other) noexcept; ---- [.small]#link:#clang-mrdocs-GlobPattern-2constructor-08[_» more..._]# Construct an empty GlobPattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- GlobPattern(); ---- == Description An empty GlobPattern will never match any string. Copy constructor == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- GlobPattern(link:#clang-mrdocs-GlobPattern[GlobPattern] const& other); ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Move constructor == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- GlobPattern(link:#clang-mrdocs-GlobPattern[GlobPattern]&& other) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Destructor == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~GlobPattern(); ---- Assignment operators == Synopses Declared in `<mrdocs/Support/Glob.hpp>` Copy assignment [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-GlobPattern[GlobPattern]& link:#clang-mrdocs-GlobPattern-operator_assign-08[operator=](link:#clang-mrdocs-GlobPattern[GlobPattern] const& other); ---- [.small]#link:#clang-mrdocs-GlobPattern-operator_assign-08[_» more..._]# Move assignment [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-GlobPattern[GlobPattern]& link:#clang-mrdocs-GlobPattern-operator_assign-04[operator=](link:#clang-mrdocs-GlobPattern[GlobPattern]&& other) noexcept; ---- [.small]#link:#clang-mrdocs-GlobPattern-operator_assign-04[_» more..._]# Copy assignment == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-GlobPattern[GlobPattern]& operator=(link:#clang-mrdocs-GlobPattern[GlobPattern] const& other); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Move assignment == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-GlobPattern[GlobPattern]& operator=(link:#clang-mrdocs-GlobPattern[GlobPattern]&& other) noexcept; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to move assign from |=== Checks if the glob pattern is a literal string. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isLiteral() const; ---- == Description This function determines if the glob pattern does not contain any special characters. In other words, it matches a single string. == Return Value true if the glob pattern is a literal string, false otherwise. Matches the given string against the glob pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool match( std::string_view str, char delimiter) const; ---- == Return Value true if the string matches the pattern, false otherwise. == Parameters [cols=2] |=== | Name | Description | *str* | The string to match against the pattern. | *delimiter* | The character that does not match. |=== Matches the start of a given string against the glob pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool matchPatternPrefix( std::string_view prefix, char delimiter) const; ---- == Description This function determines if the given string with the specified `prefix` can potentially match the glob pattern. If the string matches the start of the pattern without failure, even if there are characters left in the string or the pattern, the function returns true. == Return Value true if the string prefix matches the pattern, false otherwise. == Parameters [cols=2] |=== | Name | Description | *prefix* | The string to match against the pattern. | *delimiter* | The character that does not match. |=== Returns the glob pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view pattern() const; ---- == Return Value The glob pattern as a string view. Constructs a GlobPattern with the given pattern. == Synopses Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<GlobPattern>] link:#clang-mrdocs-GlobPattern-create-0a[create](std::string_view pattern); ---- [.small]#link:#clang-mrdocs-GlobPattern-create-0a[_» more..._]# Constructs a GlobPattern with the given pattern. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<GlobPattern>] link:#clang-mrdocs-GlobPattern-create-0e[create]( std::string_view pattern, std::optional<std::size_t> maxSubGlobs); ---- [.small]#link:#clang-mrdocs-GlobPattern-create-0e[_» more..._]# == Return Value The constructed GlobPattern, or an error if the pattern is invalid. == Parameters [cols=2] |=== | Name | Description | *pattern* | The glob pattern to use for matching. | *maxSubGlobs* | The maximum number of subpatterns allowed. If the pattern contains more subpatterns than this value, an error is returned. If not specified, there is no limit. |=== == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<GlobPattern>] create(std::string_view pattern); ---- Constructs a GlobPattern with the given pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<GlobPattern>] create( std::string_view pattern, std::optional<std::size_t> maxSubGlobs); ---- == Return Value The constructed GlobPattern, or an error if the pattern is invalid. == Parameters [cols=2] |=== | Name | Description | *pattern* | The glob pattern to use for matching. | *maxSubGlobs* | The maximum number of subpatterns allowed. If the pattern contains more subpatterns than this value, an error is returned. If not specified, there is no limit. |=== Info for deduction guides. == Synopsis Declared in `<mrdocs/Metadata/Info/Guide.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct GuideInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Guide>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Guide>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-GuideInfo-2constructor[`GuideInfo`] [.small]#[constructor]# | Construct from `SymbolID` | link:#clang-mrdocs-GuideInfo-operator_3way-0a[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-GuideInfo-isConcept[`isConcept`] | link:#clang-mrdocs-GuideInfo-isEnum[`isEnum`] | link:#clang-mrdocs-GuideInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-GuideInfo-isFunction[`isFunction`] | link:#clang-mrdocs-GuideInfo-isGuide[`isGuide`] | link:#clang-mrdocs-GuideInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-GuideInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-GuideInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-GuideInfo-isRecord[`isRecord`] | link:#clang-mrdocs-GuideInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-GuideInfo-isUsing[`isUsing`] | link:#clang-mrdocs-GuideInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-GuideInfo-Deduced[`Deduced`] | The pattern for the deduced specialization. | link:#clang-mrdocs-GuideInfo-Explicit[`Explicit`] | The explicit‐specifier, if any. | link:#clang-mrdocs-GuideInfo-Params[`Params`] | The parameters of the deduction guide. | link:#clang-mrdocs-GuideInfo-Template[`Template`] | Template head, if any. |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-GuideInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/Guide.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit GuideInfo(link:#clang-mrdocs-SymbolID[SymbolID] ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to construct from |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Info/Guide.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-GuideInfo-operator_3way-06[operator<=>](link:#clang-mrdocs-GuideInfo[GuideInfo] const& other) const; ---- [.small]#link:#clang-mrdocs-GuideInfo-operator_3way-06[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-GuideInfo-operator_3way-04[operator<=>](link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Guide>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-GuideInfo-operator_3way-04[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info/Guide.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-GuideInfo[GuideInfo] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Guide>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- The pattern for the deduced specialization. == Synopsis Declared in `<mrdocs/Metadata/Info/Guide.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] Deduced = std::nullopt; ---- == Description This is always a SpecializationTypeInfo. The explicit‐specifier, if any. == Synopsis Declared in `<mrdocs/Metadata/Info/Guide.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ExplicitInfo[ExplicitInfo] Explicit; ---- The parameters of the deduction guide. == Synopsis Declared in `<mrdocs/Metadata/Info/Guide.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Param> Params; ---- Template head, if any. == Synopsis Declared in `<mrdocs/Metadata/Info/Guide.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<TemplateInfo> Template; ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- A handlebars environment == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Handlebars; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-Handlebars-Tag[`Tag`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Handlebars-2constructor[`Handlebars`] [.small]#[constructor]# | Construct a handlebars environment | link:#clang-mrdocs-Handlebars-registerHelper[`registerHelper`] | Register a helper accessible by any template in the environment. | link:#clang-mrdocs-Handlebars-registerLogger[`registerLogger`] | Register a logger | link:#clang-mrdocs-Handlebars-registerPartial[`registerPartial`] | Register a partial | link:#clang-mrdocs-Handlebars-render-06[`render`] | Render a handlebars template | link:#clang-mrdocs-Handlebars-render_to-09b4[`render_to`] | Render a handlebars template | link:#clang-mrdocs-Handlebars-try_render-03a[`try_render`] | Render a handlebars template | link:#clang-mrdocs-Handlebars-try_render_to-053[`try_render_to`] | Render a handlebars template | link:#clang-mrdocs-Handlebars-unregisterHelper[`unregisterHelper`] | Unregister a helper | link:#clang-mrdocs-Handlebars-unregisterPartial[`unregisterPartial`] | Unregister a partial |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-helpers-registerAntoraHelpers[`helpers::registerAntoraHelpers`] | Register all the Antora helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerBuiltinHelpers[`helpers::registerBuiltinHelpers`] | Register all the built‐in helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerConstructorHelpers[`helpers::registerConstructorHelpers`] | Register contructor helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerContainerHelpers[`helpers::registerContainerHelpers`] | Register helpers to manipulate composite data types | link:#clang-mrdocs-helpers-registerLogicalHelpers[`helpers::registerLogicalHelpers`] | Register logical helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerMathHelpers[`helpers::registerMathHelpers`] | Register math helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerStringHelpers[`helpers::registerStringHelpers`] | Register string helpers into a Handlebars instance | link:#clang-mrdocs-helpers-registerTypeHelpers[`helpers::registerTypeHelpers`] | Register type helpers into a Handlebars instance | link:#clang-mrdocs-js-registerHelper[`js::registerHelper`] | Register a JavaScript helper function |=== == Description This class implements a handlebars template environment. It is analogous to the complete state held by the handlebars.js module, including registered helpers and partials. In the general case, handlebars.js provides a global `Handlebars` environment where helpers and partials are registered: [,cpp] ---- {.js} let template = Handlebars.compile("{{foo}}"); let result = template({foo: "bar"}); ---- but also provides a way to create a new isolated environment with its own helpers and partials: [,cpp] ---- {.js} let OtherHandlebars = Handlebars.create(); let template = OtherHandlebars.compile("{{foo}}"); let result = template({foo: "bar"}); ---- In this implementation, however, there's no global environment. A new environment needs to be created explicitly be instantiating this class: [,cpp] ---- {.cpp} Handlebars env; dom::Object context; context["foo"] = "bar"; std::string result = env.render("{{ foo }}", context); assert(result == "bar"); ---- A handlebars template can be rendered using the context data provided as a `dom::Value`, which is usually a `dom::Object` at the first level when calling `render`. In the most general case, the result can returned as a string or rendered directly to a buffer or stream. The render function provides an overload that allows the caller to provide an output stream where the template will be rendered directly without allocating a string: [,cpp] ---- {.cpp} Handlebars env; dom::Object context; context["foo"] = "bar"; env.render_to(std::cout, "{{ foo }}", context); // prints "bar" to stdout ---- [,cpp] ---- {.cpp} Handlebars env; dom::Object context; context["foo"] = "bar"; std::string result; env.render_to(result, "{{ foo }}", context); assert(result == "bar"); ---- Design considerations: The following notes include some design considerations for the current implementation of this class. These are intended to describe the current state of the class rather than to provide the final specification of the class behavior. Compiled templates: Unlike handlebars.js, this implementation renders the template directly to the output stream, without requiring an intermediary object to store a representation of the compiled template (`Handlebars.precompile`) or an intermediary callable object required to ultimately render the template (`Handlebars.precompile`). The rationale is that there is not much benefit in pre‐compiling templates in C++, since both iterating the input string and a pre‐compiled template would have very similar costs even in optimal implementations of the compiled template. The most significant benefit of pre‐compiling templates in C++ would be the faster identification of the ends of blocks, which would allow the engine iterate the block only once. For this reason, compiled templates will still be considered in a future version of this sub‐library. Also note that compiled templates cannot avoid exceptions, because a compiled template can still invoke a helper that throws exceptions and evaluate dynamic expressions that cannot be identified during the first pass. Incremental rendering and compilation: Although this is not supported by handlebars.js, it's common for C++ template engines to support incremental rendering, where the template is compiled or rendered in chunks as it is parsed. This implementation does not yet support this feature. This is useful for streaming templates, where the template is rendered to a stream as it is parsed, without requiring the entire template to be parsed and compiled before rendering starts. There are two types of incremental rendering and compilation supported by this implementation: ‐ Incremental rendering of a partial template input to a stream ‐ Incremental rendering into an output buffer of fixed size In each of these cases, the template is rendered in chunks until the end of the partial template is reached or the output buffer is full. In a scenario with compiled templates, the complexity of incremental rendering needs to be implemented for both compilation and rendering. The main difficulty to implement incremental rendering for handlebars.js is that helpers can be invoked from anywhere in the template, and most content is actually rendered by helpers. This means that helpers would need to be able to interoperate with whatever mechanism is designed to support suspension in this recursive‐coroutine‐like interface. Error propagation: The main logic to render a template is implemented in the `render` function, does not throws by itself. How identifying the next tag in a template string, the algorithms uses a loose implementation where unclosed tags are rendered as‐is instead of throwing errors. However, helpers are allowed to throw exceptions to propagate errors, so the `render` function is not `noexcept`. For this reason, exceptions thrown by helpers are in fact exceptional conditions that should be handled by the caller. In general, exceptions can be avoided completely by not throwing exceptions from helpers. == See Also https://handlebarsjs.com/ == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Tag; ---- Construct a handlebars environment == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Handlebars(); ---- == Description This constructor creates a new handlebars environment with the built‐in helpers and default logger. Each environment has its own helpers and partials. Multiple environments are only necessary for use cases that demand distinct helpers or partials. == See Also helpers::registerBuiltinHelpers Register a helper accessible by any template in the environment. == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerHelper( std::string_view name, link:#clang-mrdocs-dom-Function[dom::Function] const& helper); ---- == Description The helper type is a type erased function of type link:#clang-mrdocs-dom-Function[`dom::Function`], which receives the resolved template arguments as parameters as a link:#clang-mrdocs-dom-Value[`dom::Value`] for each parameter. The helper function also receives an object populated with variables that are accessible in the current context as its N+1‐th parameter. This object contains information about the current context and is useful for helpers that want to change the current context or render internal blocks. As all instances of link:#clang-mrdocs-dom-Function[`dom::Function`], the helper should also return a link:#clang-mrdocs-dom-Value[`dom::Value`]. If the function semantics does not require a return value, the function should return a link:#clang-mrdocs-dom-Value[`dom::Value`] of type link:#clang-mrdocs-dom-Kind[`dom::Kind::Undefined`]. When the helper is used in an subexpression, the link:#clang-mrdocs-dom-Value[`dom::Value`] return value is used as the intermediary result. When the helper is used in a block or a final expression, the link:#clang-mrdocs-dom-Value[`dom::Value`] return value will be formatted to the output. == Parameters [cols=2] |=== | Name | Description | *name* | The name of the helper in the handlebars template | *helper* | The helper function |=== == See Also https://handlebarsjs.com/guide/expressions.html https://handlebarsjs.com/guide/block‐helpers.html https://handlebarsjs.com/guide/builtin‐helpers.html Register a logger == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerLogger(link:#clang-mrdocs-dom-Function[dom::Function] fn); ---- == Description This function registers a logger with the handlebars environment. A logger is a function that is called from the built‐in "log" helper function. The logger can also be called from any helper through the `HandlebarsCallback` parameter. The logger function is called with a `dom::Value` indicating the current level and a `dom::Array` containing values to be logged. == Parameters [cols=2] |=== | Name | Description | *fn* | The logger function |=== Register a partial == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void registerPartial( std::string_view name, std::string_view text); ---- == Description This function registers a partial with the handlebars environment. A partial is a template that can be referenced from another template. The partial is rendered in the context of the template that references it. For instance, a partial can be used to render a header or footer that is common to several pages. It can also be used to render a list of items that is used in several places. The following example template uses the partial `item` to render a list of items: [,cpp] ---- {.handlebars}
    {{#each items}} {{> item}} {{/each}}
---- == Parameters [cols=2] |=== | Name | Description | *name* | The name of the partial | *text* | The content of the partial |=== == See Also https://handlebarsjs.com/guide/partials.html Render a handlebars template == Synopses Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-Handlebars-render-04[render](std::string_view templateText) const; ---- [.small]#link:#clang-mrdocs-Handlebars-render-04[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-Handlebars-render-03[render]( std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context) const; ---- [.small]#link:#clang-mrdocs-Handlebars-render-03[_» more..._]# Render a handlebars template [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-Handlebars-render-0a[render]( std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context, link:#clang-mrdocs-HandlebarsOptions[HandlebarsOptions] const& options) const; ---- [.small]#link:#clang-mrdocs-Handlebars-render-0a[_» more..._]# == Return Value The rendered text == Parameters [cols=2] |=== | Name | Description | *templateText* | The handlebars template text | *context* | The data to render | *options* | The options to use |=== == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string render(std::string_view templateText) const; ---- == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string render( std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context) const; ---- Render a handlebars template == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string render( std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context, link:#clang-mrdocs-HandlebarsOptions[HandlebarsOptions] const& options) const; ---- == Description This function renders the specified handlebars template and returns the result as a string. The context data to render is passed as a dom::Value, which is usually a dom::Object at the first level. When the context is not an object, it is accessed from the handlebars template with the `this` keyword. == Return Value The rendered text == Parameters [cols=2] |=== | Name | Description | *templateText* | The handlebars template text | *context* | The data to render | *options* | The options to use |=== Render a handlebars template == Synopses Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-Handlebars-render_to-04[render_to]( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText) const; ---- [.small]#link:#clang-mrdocs-Handlebars-render_to-04[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-Handlebars-render_to-09b2[render_to]( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context) const; ---- [.small]#link:#clang-mrdocs-Handlebars-render_to-09b2[_» more..._]# Render a handlebars template [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-Handlebars-render_to-0c[render_to]( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context, link:#clang-mrdocs-HandlebarsOptions[HandlebarsOptions] const& options) const; ---- [.small]#link:#clang-mrdocs-Handlebars-render_to-0c[_» more..._]# == Return Value The rendered text == Parameters [cols=2] |=== | Name | Description | *templateText* | The handlebars template text | *context* | The data to render | *options* | The options to use |=== == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void render_to( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText) const; ---- == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void render_to( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context) const; ---- Render a handlebars template == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void render_to( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context, link:#clang-mrdocs-HandlebarsOptions[HandlebarsOptions] const& options) const; ---- == Description This function renders the specified handlebars template and writes the result to the specified output stream. The output stream can be any type convertible to OutputRef, which is a reference to a stream that can be written to with the << operator. == Return Value The rendered text == Parameters [cols=2] |=== | Name | Description | *templateText* | The handlebars template text | *context* | The data to render | *options* | The options to use | *out* | Reference to output stream used by handlebars |=== Render a handlebars template == Synopses Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::string, HandlebarsError>] link:#clang-mrdocs-Handlebars-try_render-07[try_render](std::string_view templateText) const; ---- [.small]#link:#clang-mrdocs-Handlebars-try_render-07[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::string, HandlebarsError>] link:#clang-mrdocs-Handlebars-try_render-0d[try_render]( std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context) const; ---- [.small]#link:#clang-mrdocs-Handlebars-try_render-0d[_» more..._]# Render a handlebars template [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::string, HandlebarsError>] link:#clang-mrdocs-Handlebars-try_render-03e[try_render]( std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context, link:#clang-mrdocs-HandlebarsOptions[HandlebarsOptions] const& options) const; ---- [.small]#link:#clang-mrdocs-Handlebars-try_render-03e[_» more..._]# == Return Value The rendered text == Parameters [cols=2] |=== | Name | Description | *templateText* | The handlebars template text | *context* | The data to render | *options* | The options to use |=== == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::string, HandlebarsError>] try_render(std::string_view templateText) const; ---- == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::string, HandlebarsError>] try_render( std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context) const; ---- Render a handlebars template == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::string, HandlebarsError>] try_render( std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context, link:#clang-mrdocs-HandlebarsOptions[HandlebarsOptions] const& options) const; ---- == Description This function renders the specified handlebars template and writes the result to the specified output stream. The output stream can be any type convertible to OutputRef, which is a reference to a stream that can be written to with the << operator. == Return Value The rendered text == Parameters [cols=2] |=== | Name | Description | *templateText* | The handlebars template text | *context* | The data to render | *options* | The options to use |=== Render a handlebars template == Synopses Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void, HandlebarsError>] link:#clang-mrdocs-Handlebars-try_render_to-052[try_render_to]( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText) const; ---- [.small]#link:#clang-mrdocs-Handlebars-try_render_to-052[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void, HandlebarsError>] link:#clang-mrdocs-Handlebars-try_render_to-050[try_render_to]( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context) const; ---- [.small]#link:#clang-mrdocs-Handlebars-try_render_to-050[_» more..._]# Render a handlebars template [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void, HandlebarsError>] link:#clang-mrdocs-Handlebars-try_render_to-06[try_render_to]( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context, link:#clang-mrdocs-HandlebarsOptions[HandlebarsOptions] const& options) const; ---- [.small]#link:#clang-mrdocs-Handlebars-try_render_to-06[_» more..._]# == Return Value The rendered text == Parameters [cols=2] |=== | Name | Description | *templateText* | The handlebars template text | *context* | The data to render | *options* | The options to use |=== == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void, HandlebarsError>] try_render_to( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText) const; ---- == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void, HandlebarsError>] try_render_to( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context) const; ---- Render a handlebars template == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void, HandlebarsError>] try_render_to( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view templateText, link:#clang-mrdocs-dom-Value[dom::Value] const& context, link:#clang-mrdocs-HandlebarsOptions[HandlebarsOptions] const& options) const; ---- == Description This function renders the specified handlebars template and writes the result to the specified output stream. The output stream can be any type convertible to OutputRef, which is a reference to a stream that can be written to with the << operator. == Return Value The rendered text == Parameters [cols=2] |=== | Name | Description | *templateText* | The handlebars template text | *context* | The data to render | *options* | The options to use | *out* | Reference to output stream used by handlebars |=== Unregister a helper == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void unregisterHelper(std::string_view name); ---- == Description This function unregisters a helper with the handlebars environment. == Parameters [cols=2] |=== | Name | Description | *name* | The name of the helper |=== Unregister a partial == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void unregisterPartial(std::string_view name); ---- == Description This function unregisters a partial with the handlebars environment. == Parameters [cols=2] |=== | Name | Description | *name* | The name of the partial |=== An error thrown or returned by Handlebars == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct HandlebarsError : std::runtime_error ---- == Base Classes [cols=2] |=== | Name | Description | `std::runtime_error` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-HandlebarsError-2constructor-0e[`HandlebarsError`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-HandlebarsError-operator_assign[`operator=`] | | link:#clang-mrdocs-HandlebarsError-what[`what`] [.small]#[virtual]# | |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-HandlebarsError-column[`column`] | link:#clang-mrdocs-HandlebarsError-line[`line`] | link:#clang-mrdocs-HandlebarsError-pos[`pos`] |=== == Description An error returned or thrown by Handlebars environment when an error occurs during template rendering. The error message will be the same as the error message returned by Handlebars.js. The object will also contain the line, column and position of the error in the template. These can be used to by the caller to provide more detailed error messages. Constructors == Synopses Declared in `<mrdocs/Support/Handlebars.hpp>` Construct from `string_view` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-HandlebarsError-2constructor-0d[HandlebarsError](std::string_view msg); ---- [.small]#link:#clang-mrdocs-HandlebarsError-2constructor-0d[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-HandlebarsError-2constructor-0c[HandlebarsError]( std::string_view msg, std::size_t line_, std::size_t column_, std::size_t pos_); ---- [.small]#link:#clang-mrdocs-HandlebarsError-2constructor-0c[_» more..._]# Construct from `string_view` == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- HandlebarsError(std::string_view msg); ---- == Parameters [cols=2] |=== | Name | Description | *msg* | The object to construct from |=== == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- HandlebarsError( std::string_view msg, std::size_t line_, std::size_t column_, std::size_t pos_); ---- == Synopsis Declared in `<stdexcept>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- runtime_error& operator=(runtime_error const& value) noexcept; ---- == Synopsis Declared in `<stdexcept>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual char const* what() const noexcept override; ---- == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t column = static_cast<std::size_t>(‐1); ---- == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t line = static_cast<std::size_t>(‐1); ---- == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t pos = static_cast<std::size_t>(‐1); ---- Options for handlebars == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct HandlebarsOptions; ---- == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-HandlebarsOptions-assumeObjects[`assumeObjects`] | Removes object existence checks when traversing paths | link:#clang-mrdocs-HandlebarsOptions-compat[`compat`] | Enable recursive field lookup | link:#clang-mrdocs-HandlebarsOptions-data[`data`] | Custom private data object | link:#clang-mrdocs-HandlebarsOptions-escapeFunction[`escapeFunction`] | Function to escape entities | link:#clang-mrdocs-HandlebarsOptions-explicitPartialContext[`explicitPartialContext`] | Disables implicit context for partials | link:#clang-mrdocs-HandlebarsOptions-ignoreStandalone[`ignoreStandalone`] | Disables standalone tag removal when set to true | link:#clang-mrdocs-HandlebarsOptions-noEscape[`noEscape`] | Escape HTML entities or entities defined by the escape function | link:#clang-mrdocs-HandlebarsOptions-preventIndent[`preventIndent`] | Disable the auto‐indent feature | link:#clang-mrdocs-HandlebarsOptions-strict[`strict`] | Templates will throw rather than ignore missing fields | link:#clang-mrdocs-HandlebarsOptions-trackIds[`trackIds`] | Enable tracking of ids |=== == Description This struct is analogous to the Handlebars.compile options. == See Also https://handlebarsjs.com/api‐reference/compilation.html Removes object existence checks when traversing paths == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool assumeObjects = false; ---- == Description This is a subset of strict mode that generates optimized templates when the data inputs are known to be safe. Enable recursive field lookup == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool compat = false; ---- == Description When enabled, fields will be looked up recursively in objects and arrays. This mode should be used to enable complete compatibility with Mustache templates. Custom private data object == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] data = nullptr; ---- == Description This variable can be used to pass in an object to define custom private variables. Function to escape entities == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::function<void(link:#clang-mrdocs-OutputRef[OutputRef]&, std::string_view)> escapeFunction = static_cast<void(*)(OutputRef&, std::string_view)>(HTMLEscape); ---- == Description It's initialized with a reference to the HTMLEscape function overload that takes an OutputRef and a string_view. This function can be replaced with a custom function that escapes entities in a different way. Disables implicit context for partials == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool explicitPartialContext = false; ---- == Description When enabled, partials that are not passed a context value will execute against an empty object. Disables standalone tag removal when set to true == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool ignoreStandalone = false; ---- == Description By default, Handlebars removes whitespace around block and partial expressions. For instance, the partial: [,cpp] ---- {.handlebars} A ---- and the template: [,cpp] ---- {.handlebars}
{{> partial}}
---- will render as: [,cpp] ---- {.html}
A
---- because the whitespace up to the newline after the partial is removed. A double newline is required to ensure that the whitespace is not removed. For instance, the template: [,cpp] ---- {.handlebars}
{{> partial}}
---- will render as: [,cpp] ---- {.html}
A
---- This can be disabled by setting this option to true. When set, blocks and partials that are on their own line will not remove the whitespace on that line. Escape HTML entities or entities defined by the escape function == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool noEscape = false; ---- Disable the auto‐indent feature == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool preventIndent = false; ---- == Description By default, an indented partial‐call causes the output of the whole partial being indented by the same amount. For instance, the partial: [,cpp] ---- {.handlebars} A B C ---- and the template: [,cpp] ---- {.handlebars}
{{> partial}}
---- will render as: [,cpp] ---- {.html}
A B C
---- because the partial is indented by the same amount as the partial call. This can be disabled by setting this option to true. In this case, the partial above would be rendered as: [,cpp] ---- {.html}
A B C
---- Templates will throw rather than ignore missing fields == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool strict = false; ---- == Description Run in strict mode. In this mode, templates will throw rather than silently ignore missing fields. Enable tracking of ids == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool trackIds = false; ---- == Description When enabled, the ids of the expressions are tracked and passed to the helpers. Helpers often use this information to update the context path to the current expression, which can later be used to look up the value of the expression with ".." segments. Base class with common properties of all symbols == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Info : link:#clang-mrdocs-SourceInfo[SourceInfo] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-SourceInfo[SourceInfo]` | Stores source information for a declaration. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Info-2constructor-0f[`Info`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-Info-2destructor[`~Info`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-Info-asInfo-01[`asInfo`] | | link:#clang-mrdocs-SourceInfo-asSourceInfo-02[`asSourceInfo`] | | link:#clang-mrdocs-Info-operator_3way-05[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-Info-Access[`Access`] | Declaration access. | link:#clang-mrdocs-SourceInfo-DefLoc[`DefLoc`] | Location where the entity was defined | link:#clang-mrdocs-Info-Extraction[`Extraction`] | Determine why a symbol is extracted. | link:#clang-mrdocs-Info-Kind[`Kind`] | Kind of declaration. | link:#clang-mrdocs-SourceInfo-Loc[`Loc`] | Locations where the entity was declared. | link:#clang-mrdocs-Info-Name[`Name`] | The unqualified name. | link:#clang-mrdocs-Info-Parent[`Parent`] | The parent symbol, if any. | link:#clang-mrdocs-Info-id[`id`] | The unique identifier for this symbol. | link:#clang-mrdocs-Info-javadoc[`javadoc`] | The extracted javadoc for this declaration. |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-InfoCommonBase-08[`InfoCommonBase`] | Base class for providing variant discriminator functions. |=== Constructors == Synopses Declared in `<mrdocs/Metadata/Info.hpp>` Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Info-2constructor-09[Info](link:#clang-mrdocs-Info[Info] const& Other) = default; ---- [.small]#link:#clang-mrdocs-Info-2constructor-09[_» more..._]# Move constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Info-2constructor-03[Info](link:#clang-mrdocs-Info[Info]&& Other) = default; ---- [.small]#link:#clang-mrdocs-Info-2constructor-03[_» more..._]# Construct an Info. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-Info-2constructor-0b[Info]( link:#clang-mrdocs-InfoKind[InfoKind] const kind, link:#clang-mrdocs-SymbolID[SymbolID] const& ID) noexcept; ---- [.small]#link:#clang-mrdocs-Info-2constructor-0b[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *kind* | The kind of symbol | *ID* | The unique identifier for this symbol |=== Copy constructor == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Info(link:#clang-mrdocs-Info[Info] const& Other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *Other* | The object to copy construct from |=== Move constructor. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Info(link:#clang-mrdocs-Info[Info]&& Other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *Other* | The object to move construct from |=== Construct an Info. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Info( link:#clang-mrdocs-InfoKind[InfoKind] const kind, link:#clang-mrdocs-SymbolID[SymbolID] const& ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *kind* | The kind of symbol | *ID* | The unique identifier for this symbol |=== Destructor == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr virtual ~Info() override = default; ---- == Synopses Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Info[Info] const& link:#clang-mrdocs-Info-asInfo-02[asInfo]() const noexcept; ---- [.small]#link:#clang-mrdocs-Info-asInfo-02[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Info[Info]& link:#clang-mrdocs-Info-asInfo-03[asInfo]() noexcept; ---- [.small]#link:#clang-mrdocs-Info-asInfo-03[_» more..._]# == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Info[Info] const& asInfo() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Info[Info]& asInfo() noexcept; ---- Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Info.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-Info-operator_3way-07[operator<=>](link:#clang-mrdocs-Info[Info] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-Info-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-SourceInfo-operator_3way[operator<=>](link:#clang-mrdocs-SourceInfo[SourceInfo] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-SourceInfo-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-Info[Info] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-SourceInfo[SourceInfo] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Declaration access. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-AccessKind[AccessKind] Access = AccessKind::None; ---- == Description Class members use: * `AccessKind::Public`, * `AccessKind::Protected`, and * `AccessKind::Private`. Namespace members use `AccessKind::None`. Determine why a symbol is extracted. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ExtractionMode[ExtractionMode] Extraction = ExtractionMode::Dependency; ---- == Description This flag distinguishes `Info` from its dependencies and indicates why it was extracted. Non‐dependencies can be extracted in normal mode, see‐below mode, or implementation‐defined mode. A dependency is a symbol which does not meet the configured conditions for extraction, but had to be extracted due to it being used transitively by a primary `Info`. Kind of declaration. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-InfoKind[InfoKind] Kind = InfoKind::None; ---- The unqualified name. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string Name; ---- The parent symbol, if any. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-SymbolID[SymbolID] Parent; ---- == Description This is the parent namespace or record where the symbol is defined. The unique identifier for this symbol. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-SymbolID[SymbolID] id; ---- The extracted javadoc for this declaration. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<Javadoc> javadoc; ---- Base class for providing variant discriminator functions. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-InfoKind[InfoKind] K> struct InfoCommonBase : link:#clang-mrdocs-Info[Info] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-Info[Info]` | Base class with common properties of all symbols |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Info-asInfo-01[`asInfo`] | | link:#clang-mrdocs-SourceInfo-asSourceInfo-02[`asSourceInfo`] | | link:#clang-mrdocs-InfoCommonBase-08-operator_3way-0e[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-Info-Access[`Access`] | Declaration access. | link:#clang-mrdocs-SourceInfo-DefLoc[`DefLoc`] | Location where the entity was defined | link:#clang-mrdocs-Info-Extraction[`Extraction`] | Determine why a symbol is extracted. | link:#clang-mrdocs-Info-Kind[`Kind`] | Kind of declaration. | link:#clang-mrdocs-SourceInfo-Loc[`Loc`] | Locations where the entity was declared. | link:#clang-mrdocs-Info-Name[`Name`] | The unqualified name. | link:#clang-mrdocs-Info-Parent[`Parent`] | The parent symbol, if any. | link:#clang-mrdocs-Info-id[`id`] | The unique identifier for this symbol. | link:#clang-mrdocs-Info-javadoc[`javadoc`] | The extracted javadoc for this declaration. |=== == Static Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-InfoCommonBase-08-kind_id[`kind_id`] | The variant discriminator constant of the most‐derived class. |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-InfoCommonBase-08-2constructor[`InfoCommonBase`] [.small]#[constructor]# | Construct from `SymbolID` |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-ConceptInfo[`ConceptInfo`] | Info for concepts. | link:#clang-mrdocs-EnumConstantInfo[`EnumConstantInfo`] | Info for enum constants. | link:#clang-mrdocs-EnumInfo[`EnumInfo`] | | link:#clang-mrdocs-FunctionInfo[`FunctionInfo`] | | link:#clang-mrdocs-GuideInfo[`GuideInfo`] | Info for deduction guides. | link:#clang-mrdocs-NamespaceAliasInfo[`NamespaceAliasInfo`] | Info for namespace aliases. | link:#clang-mrdocs-NamespaceInfo[`NamespaceInfo`] | Describes a namespace. | link:#clang-mrdocs-OverloadsInfo[`OverloadsInfo`] | Represents a set of function overloads. | link:#clang-mrdocs-RecordInfo[`RecordInfo`] | Metadata for struct, class, or union. | link:#clang-mrdocs-TypedefInfo[`TypedefInfo`] | | link:#clang-mrdocs-UsingInfo[`UsingInfo`] | Info for using declarations. | link:#clang-mrdocs-VariableInfo[`VariableInfo`] | A variable. |=== == Description This offers functions that return a boolean at compile‐time, indicating if the most‐derived class is a certain type. Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Info.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-InfoCommonBase-08-operator_3way-0b[operator<=>](link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-InfoCommonBase-08-operator_3way-0b[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-Info-operator_3way-07[operator<=>](link:#clang-mrdocs-Info[Info] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-Info-operator_3way-07[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-SourceInfo-operator_3way[operator<=>](link:#clang-mrdocs-SourceInfo[SourceInfo] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-SourceInfo-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-Info[Info] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-SourceInfo[SourceInfo] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== The variant discriminator constant of the most‐derived class. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id = K; ---- == Description It only distinguishes from `Info::kind` in that it is a constant. Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit InfoCommonBase(link:#clang-mrdocs-SymbolID[SymbolID] const& ID); ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to copy construct from |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-TArgKind[TArgKind] K> struct IsTArg : link:#clang-mrdocs-TArg[TArg] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TArg[TArg]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TArg-isNonType[`isNonType`] | | link:#clang-mrdocs-TArg-isTemplate[`isTemplate`] | | link:#clang-mrdocs-TArg-isType[`isType`] | | link:#clang-mrdocs-TArg-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-IsTArg-01-isNonType[`isNonType`] | link:#clang-mrdocs-IsTArg-01-isTemplate[`isTemplate`] | link:#clang-mrdocs-IsTArg-01-isType[`isType`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TArg-IsPackExpansion[`IsPackExpansion`] | Whether this template argument is a parameter expansion. | link:#clang-mrdocs-TArg-Kind[`Kind`] | The kind of template argument this is. |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-IsTArg-01-kind_id[`kind_id`] |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-IsTArg-01-2constructor[`IsTArg`] [.small]#[constructor]# | Default constructor |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-NonTypeTArg[`NonTypeTArg`] | | link:#clang-mrdocs-TemplateTArg[`TemplateTArg`] | | link:#clang-mrdocs-TypeTArg[`TypeTArg`] | |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNonType() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTemplate() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isType() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static link:#clang-mrdocs-TArgKind[TArgKind] kind_id = K; ---- Default constructor == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr IsTArg() noexcept; ---- A processed Doxygen‐style comment attached to a declaration. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Javadoc; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Javadoc-2constructor-0a[`Javadoc`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-Javadoc-append-04f[`append`] | `append` overloads | link:#clang-mrdocs-Javadoc-emplace_back[`emplace_back`] | Attempt to append a block. | link:#clang-mrdocs-Javadoc-empty[`empty`] | Return true if this is empty | link:#clang-mrdocs-Javadoc-getBlocks-0c[`getBlocks`] | Return the list of top level blocks. | link:#clang-mrdocs-Javadoc-operator_eq[`operator==`] | Equality operator | link:#clang-mrdocs-Javadoc-operator_not_eq[`operator!=`] | Inequality operator | link:#clang-mrdocs-Javadoc-operator_3way[`operator<=>`] | Comparison |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-Javadoc-blocks[`blocks`] | The list of text blocks. | link:#clang-mrdocs-Javadoc-brief[`brief`] | A brief description of the symbol. | link:#clang-mrdocs-Javadoc-exceptions[`exceptions`] | The list of exceptions. | link:#clang-mrdocs-Javadoc-params[`params`] | The list of parameters. | link:#clang-mrdocs-Javadoc-postconditions[`postconditions`] | The list of postconditions. | link:#clang-mrdocs-Javadoc-preconditions[`preconditions`] | The list of preconditions. | link:#clang-mrdocs-Javadoc-related[`related`] | The list of "related" references. | link:#clang-mrdocs-Javadoc-relates[`relates`] | The list of "relates" references. | link:#clang-mrdocs-Javadoc-returns[`returns`] | The list of return type descriptions. | link:#clang-mrdocs-Javadoc-sees[`sees`] | The list of "see also" references. | link:#clang-mrdocs-Javadoc-tparams[`tparams`] | The list of template parameters. |=== Constructors == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Javadoc-2constructor-0b[Javadoc]() noexcept; ---- [.small]#link:#clang-mrdocs-Javadoc-2constructor-0b[_» more..._]# Constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-Javadoc-2constructor-09[Javadoc](std::vector<Polymorphic<doc::Block>> blocks); ---- [.small]#link:#clang-mrdocs-Javadoc-2constructor-09[_» more..._]# Constructor. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Javadoc() noexcept; ---- Constructor == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Javadoc(std::vector<Polymorphic<doc::Block>> blocks); ---- == Parameters [cols=2] |=== | Name | Description | *blocks* | The object to construct from |=== `append` overloads == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Append blocks from another javadoc to this. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-Javadoc-append-09[append](link:#clang-mrdocs-Javadoc[Javadoc]&& other); ---- [.small]#link:#clang-mrdocs-Javadoc-append-09[_» more..._]# Append blocks from a list to this. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-Javadoc-append-04d[append](std::vector<Polymorphic<doc::Node>>&& blocks); ---- [.small]#link:#clang-mrdocs-Javadoc-append-04d[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *blocks* | The blocks to append. |=== Append blocks from another javadoc to this. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void append(link:#clang-mrdocs-Javadoc[Javadoc]&& other); ---- == Parameters [cols=2] |=== | Name | Description | *other* | A processed Doxygen‐style comment attached to a declaration. |=== Append blocks from a list to this. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void append(std::vector<Polymorphic<doc::Node>>&& blocks); ---- == Parameters [cols=2] |=== | Name | Description | *blocks* | The blocks to append. |=== Attempt to append a block. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::derived_from<doc::Block> T> std::string emplace_back(T&& block); ---- == Return Value An empty string on success, otherwise a string indicating the reason for the failure. == Parameters [cols=2] |=== | Name | Description | *block* | The block to append. |=== Return true if this is empty == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool empty() const noexcept; ---- == Return Value true if this is empty Return the list of top level blocks. == Synopses Declared in `<mrdocs/Metadata/Javadoc.hpp>` Return the list of top level blocks. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Polymorphic<doc::Block>> const& link:#clang-mrdocs-Javadoc-getBlocks-00[getBlocks]() const noexcept; ---- [.small]#link:#clang-mrdocs-Javadoc-getBlocks-00[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Polymorphic<doc::Block>>& link:#clang-mrdocs-Javadoc-getBlocks-0d[getBlocks]() noexcept; ---- [.small]#link:#clang-mrdocs-Javadoc-getBlocks-0d[_» more..._]# Return the list of top level blocks. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Polymorphic<doc::Block>> const& getBlocks() const noexcept; ---- == Return Value the list of top level blocks. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Polymorphic<doc::Block>>& getBlocks() noexcept; ---- Equality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-Javadoc[Javadoc] const& rhs) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Inequality operator == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator!=(link:#clang-mrdocs-Javadoc[Javadoc] const& rhs) const noexcept; ---- == Return Value `true` if the objects are not equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Comparison == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-Javadoc[Javadoc] const& other) const noexcept; ---- == Description These are used internally to impose a total ordering, and not visible in the output format. @{ == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== The list of text blocks. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Polymorphic<doc::Block>> blocks; ---- A brief description of the symbol. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<doc::Brief> brief; ---- The list of exceptions. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<doc::Throws> exceptions; ---- The list of parameters. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<doc::Param> params; ---- The list of postconditions. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<doc::Postcondition> postconditions; ---- The list of preconditions. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<doc::Precondition> preconditions; ---- The list of "related" references. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<doc::Reference> related; ---- == Description These references are the inverse of the relates command. The list of "relates" references. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<doc::Reference> relates; ---- == Description These references are creates with the relates command. The list of return type descriptions. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<doc::Returns> returns; ---- == Description Multiple return descriptions are allowed. The results are concatenated in the order they appear in the source code. The list of "see also" references. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<doc::See> sees; ---- The list of template parameters. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<doc::TParam> tparams; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct LValueReferenceTypeInfo final : link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::LValueReference>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::LValueReference>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-LValueReferenceTypeInfo-operator_3way-09[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-LValueReferenceTypeInfo-isArray[`isArray`] | link:#clang-mrdocs-LValueReferenceTypeInfo-isAuto[`isAuto`] | link:#clang-mrdocs-LValueReferenceTypeInfo-isDecltype[`isDecltype`] | link:#clang-mrdocs-LValueReferenceTypeInfo-isFunction[`isFunction`] | link:#clang-mrdocs-LValueReferenceTypeInfo-isLValueReference[`isLValueReference`] | link:#clang-mrdocs-LValueReferenceTypeInfo-isMemberPointer[`isMemberPointer`] | link:#clang-mrdocs-LValueReferenceTypeInfo-isNamed[`isNamed`] | link:#clang-mrdocs-LValueReferenceTypeInfo-isPointer[`isPointer`] | link:#clang-mrdocs-LValueReferenceTypeInfo-isRValueReference[`isRValueReference`] |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-LValueReferenceTypeInfo-PointeeType[`PointeeType`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-LValueReferenceTypeInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-innerType-0f5[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerType-0f7[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0c[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0d[`innerTypePtr`] | Return the inner type. |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-LValueReferenceTypeInfo-operator_3way-0e[operator<=>](link:#clang-mrdocs-LValueReferenceTypeInfo[LValueReferenceTypeInfo] const& rhs) const; ---- [.small]#link:#clang-mrdocs-LValueReferenceTypeInfo-operator_3way-0e[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-LValueReferenceTypeInfo-operator_3way-04[operator<=>](link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::LValueReference>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-LValueReferenceTypeInfo-operator_3way-04[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-LValueReferenceTypeInfo[LValueReferenceTypeInfo] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::LValueReference>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isArray() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isAuto() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isDecltype() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isLValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isMemberPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamed() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] PointeeType = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TypeKind[TypeKind] kind_id; ---- == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Location; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Location-2constructor[`Location`] [.small]#[constructor]# | | link:#clang-mrdocs-Location-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-Location-Documented[`Documented`] | Whether this location has documentation. | link:#clang-mrdocs-Location-FullPath[`FullPath`] | The full file path | link:#clang-mrdocs-Location-LineNumber[`LineNumber`] | Line number within the file | link:#clang-mrdocs-Location-ShortPath[`ShortPath`] | The file path relative to one of the search directories | link:#clang-mrdocs-Location-SourcePath[`SourcePath`] | The file path relative to the source‐root directory |=== == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Location( std::string_view const full_path = {}, std::string_view const short_path = {}, std::string_view const source_path = {}, unsigned int const line = 0, bool const documented = false); ---- Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-Location[Location] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Whether this location has documentation. == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool Documented = false; ---- The full file path == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string FullPath; ---- Line number within the file == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- unsigned int LineNumber = 0; ---- The file path relative to one of the search directories == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string ShortPath; ---- The file path relative to the source‐root directory == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string SourcePath; ---- == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct LocationEmptyPredicate; ---- == Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-LocationEmptyPredicate-operator_call[`operator()`] |=== == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator()(link:#clang-mrdocs-Location[Location] const& loc) const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct MemberPointerTypeInfo final : link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::MemberPointer>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::MemberPointer>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-MemberPointerTypeInfo-operator_3way-03[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-MemberPointerTypeInfo-isArray[`isArray`] | link:#clang-mrdocs-MemberPointerTypeInfo-isAuto[`isAuto`] | link:#clang-mrdocs-MemberPointerTypeInfo-isDecltype[`isDecltype`] | link:#clang-mrdocs-MemberPointerTypeInfo-isFunction[`isFunction`] | link:#clang-mrdocs-MemberPointerTypeInfo-isLValueReference[`isLValueReference`] | link:#clang-mrdocs-MemberPointerTypeInfo-isMemberPointer[`isMemberPointer`] | link:#clang-mrdocs-MemberPointerTypeInfo-isNamed[`isNamed`] | link:#clang-mrdocs-MemberPointerTypeInfo-isPointer[`isPointer`] | link:#clang-mrdocs-MemberPointerTypeInfo-isRValueReference[`isRValueReference`] |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-MemberPointerTypeInfo-ParentType[`ParentType`] | link:#clang-mrdocs-MemberPointerTypeInfo-PointeeType[`PointeeType`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-MemberPointerTypeInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-innerType-0f5[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerType-0f7[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0c[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0d[`innerTypePtr`] | Return the inner type. |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-MemberPointerTypeInfo-operator_3way-0a[operator<=>](link:#clang-mrdocs-MemberPointerTypeInfo[MemberPointerTypeInfo] const& rhs) const; ---- [.small]#link:#clang-mrdocs-MemberPointerTypeInfo-operator_3way-0a[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-MemberPointerTypeInfo-operator_3way-06[operator<=>](link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::MemberPointer>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-MemberPointerTypeInfo-operator_3way-06[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-MemberPointerTypeInfo[MemberPointerTypeInfo] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::MemberPointer>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isArray() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isAuto() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isDecltype() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isLValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isMemberPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamed() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] ParentType = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] PointeeType = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TypeKind[TypeKind] kind_id; ---- Represents a name for a named `TypeInfo` == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct NameInfo; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-NameInfo-2constructor-088[`NameInfo`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-NameInfo-2destructor[`~NameInfo`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-NameInfo-isIdentifier[`isIdentifier`] | | link:#clang-mrdocs-NameInfo-isSpecialization[`isSpecialization`] | | link:#clang-mrdocs-NameInfo-operator_eq[`operator==`] | Equality operator | link:#clang-mrdocs-NameInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-NameInfo-Kind[`Kind`] | The kind of name this is. | link:#clang-mrdocs-NameInfo-Name[`Name`] | The unqualified name. | link:#clang-mrdocs-NameInfo-Prefix[`Prefix`] | The parent name info, if any. | link:#clang-mrdocs-NameInfo-id[`id`] | The SymbolID of the named symbol, if it exists. |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-SpecializationNameInfo[`SpecializationNameInfo`] | Represents a (possibly qualified) symbol name with template arguments. |=== == Description When the `TypeInfo` is a named type, this class represents the name of the type. It also includes the symbol ID of the named type, so that it can be referenced in the documentation. This allows the `TypeInfo` to store either a `NameInfo` or a `SpecializationNameInfo`, which contains the arguments for a template specialization without requiring the application to extract an unnecessary symbol. Constructors == Synopses Declared in `<mrdocs/Metadata/Name.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-NameInfo-2constructor-08b[NameInfo]() noexcept; ---- [.small]#link:#clang-mrdocs-NameInfo-2constructor-08b[_» more..._]# Construct from `NameKind` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit link:#clang-mrdocs-NameInfo-2constructor-06[NameInfo](link:#clang-mrdocs-NameKind[NameKind] const kind) noexcept; ---- [.small]#link:#clang-mrdocs-NameInfo-2constructor-06[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr NameInfo() noexcept; ---- Construct from `NameKind` == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit NameInfo(link:#clang-mrdocs-NameKind[NameKind] const kind) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *kind* | The object to construct from |=== Destructor == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr virtual ~NameInfo() = default; ---- == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isIdentifier() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isSpecialization() const noexcept; ---- Equality operator == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-NameInfo[NameInfo] const& other) const; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-NameInfo[NameInfo] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== The kind of name this is. == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-NameKind[NameKind] Kind; ---- The unqualified name. == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string Name; ---- The parent name info, if any. == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] Prefix = std::nullopt; ---- == Description This recursively includes information about the parent, such as the symbol ID and potentially template arguments, when the parent is a SpecializationNameInfo. This is particularly useful because the parent of `id` could be a primary template. In this case, the Prefix will contain this primary template information and the template arguments. The SymbolID of the named symbol, if it exists. == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-SymbolID[SymbolID] id = = SymbolID::invalid; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct NamedTypeInfo final : link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Named>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Named>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-NamedTypeInfo-operator_3way-00[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-NamedTypeInfo-isArray[`isArray`] | link:#clang-mrdocs-NamedTypeInfo-isAuto[`isAuto`] | link:#clang-mrdocs-NamedTypeInfo-isDecltype[`isDecltype`] | link:#clang-mrdocs-NamedTypeInfo-isFunction[`isFunction`] | link:#clang-mrdocs-NamedTypeInfo-isLValueReference[`isLValueReference`] | link:#clang-mrdocs-NamedTypeInfo-isMemberPointer[`isMemberPointer`] | link:#clang-mrdocs-NamedTypeInfo-isNamed[`isNamed`] | link:#clang-mrdocs-NamedTypeInfo-isPointer[`isPointer`] | link:#clang-mrdocs-NamedTypeInfo-isRValueReference[`isRValueReference`] |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-NamedTypeInfo-FundamentalType[`FundamentalType`] | link:#clang-mrdocs-NamedTypeInfo-Name[`Name`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-NamedTypeInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-innerType-0f5[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerType-0f7[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0c[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0d[`innerTypePtr`] | Return the inner type. |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-NamedTypeInfo-operator_3way-0d[operator<=>](link:#clang-mrdocs-NamedTypeInfo[NamedTypeInfo] const& other) const; ---- [.small]#link:#clang-mrdocs-NamedTypeInfo-operator_3way-0d[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-NamedTypeInfo-operator_3way-06[operator<=>](link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Named>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-NamedTypeInfo-operator_3way-06[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-NamedTypeInfo[NamedTypeInfo] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Named>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isArray() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isAuto() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isDecltype() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isLValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isMemberPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamed() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<FundamentalTypeKind> FundamentalType; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] Name = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TypeKind[TypeKind] kind_id; ---- Info for namespace aliases. == Synopsis Declared in `<mrdocs/Metadata/Info/NamespaceAlias.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct NamespaceAliasInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::NamespaceAlias>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::NamespaceAlias>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-NamespaceAliasInfo-2constructor[`NamespaceAliasInfo`] [.small]#[constructor]# | Construct from `SymbolID` | link:#clang-mrdocs-NamespaceAliasInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-NamespaceAliasInfo-isConcept[`isConcept`] | link:#clang-mrdocs-NamespaceAliasInfo-isEnum[`isEnum`] | link:#clang-mrdocs-NamespaceAliasInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-NamespaceAliasInfo-isFunction[`isFunction`] | link:#clang-mrdocs-NamespaceAliasInfo-isGuide[`isGuide`] | link:#clang-mrdocs-NamespaceAliasInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-NamespaceAliasInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-NamespaceAliasInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-NamespaceAliasInfo-isRecord[`isRecord`] | link:#clang-mrdocs-NamespaceAliasInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-NamespaceAliasInfo-isUsing[`isUsing`] | link:#clang-mrdocs-NamespaceAliasInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-NamespaceAliasInfo-AliasedSymbol[`AliasedSymbol`] | The aliased symbol. |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-NamespaceAliasInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/NamespaceAlias.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit NamespaceAliasInfo(link:#clang-mrdocs-SymbolID[SymbolID] const& ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to copy construct from |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::NamespaceAlias>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- The aliased symbol. == Synopsis Declared in `<mrdocs/Metadata/Info/NamespaceAlias.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] AliasedSymbol; ---- == Description This is another namespace that might or might not be in the same project. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- Describes a namespace. == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct NamespaceInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Namespace>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Namespace>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-NamespaceInfo-2constructor[`NamespaceInfo`] [.small]#[constructor]# | Construct from `SymbolID` | link:#clang-mrdocs-NamespaceInfo-operator_3way-09[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-NamespaceInfo-isConcept[`isConcept`] | link:#clang-mrdocs-NamespaceInfo-isEnum[`isEnum`] | link:#clang-mrdocs-NamespaceInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-NamespaceInfo-isFunction[`isFunction`] | link:#clang-mrdocs-NamespaceInfo-isGuide[`isGuide`] | link:#clang-mrdocs-NamespaceInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-NamespaceInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-NamespaceInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-NamespaceInfo-isRecord[`isRecord`] | link:#clang-mrdocs-NamespaceInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-NamespaceInfo-isUsing[`isUsing`] | link:#clang-mrdocs-NamespaceInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-NamespaceInfo-IsAnonymous[`IsAnonymous`] | | link:#clang-mrdocs-NamespaceInfo-IsInline[`IsInline`] | | link:#clang-mrdocs-NamespaceInfo-Members[`Members`] | The members of this namespace. | link:#clang-mrdocs-NamespaceInfo-UsingDirectives[`UsingDirectives`] | Namespaces nominated by using‐directives. |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-NamespaceInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit NamespaceInfo(link:#clang-mrdocs-SymbolID[SymbolID] const& ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to copy construct from |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-NamespaceInfo-operator_3way-05[operator<=>](link:#clang-mrdocs-NamespaceInfo[NamespaceInfo] const& rhs) const; ---- [.small]#link:#clang-mrdocs-NamespaceInfo-operator_3way-05[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-NamespaceInfo-operator_3way-08[operator<=>](link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Namespace>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-NamespaceInfo-operator_3way-08[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-NamespaceInfo[NamespaceInfo] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Namespace>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsAnonymous = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsInline = false; ---- The members of this namespace. == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-NamespaceTranche[NamespaceTranche] Members; ---- Namespaces nominated by using‐directives. == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<NameInfo> UsingDirectives; ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- The members of a Namespace == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct NamespaceTranche; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-NamespaceTranche-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-NamespaceTranche-Concepts[`Concepts`] | link:#clang-mrdocs-NamespaceTranche-Enums[`Enums`] | link:#clang-mrdocs-NamespaceTranche-Functions[`Functions`] | link:#clang-mrdocs-NamespaceTranche-Guides[`Guides`] | link:#clang-mrdocs-NamespaceTranche-NamespaceAliases[`NamespaceAliases`] | link:#clang-mrdocs-NamespaceTranche-Namespaces[`Namespaces`] | link:#clang-mrdocs-NamespaceTranche-Records[`Records`] | link:#clang-mrdocs-NamespaceTranche-Typedefs[`Typedefs`] | link:#clang-mrdocs-NamespaceTranche-Usings[`Usings`] | link:#clang-mrdocs-NamespaceTranche-Variables[`Variables`] |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-NamespaceTranche[NamespaceTranche] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Concepts; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Enums; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Functions; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Guides; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> NamespaceAliases; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Namespaces; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Records; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Typedefs; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Usings; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Variables; ---- == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct NoexceptInfo; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-NoexceptInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-NoexceptInfo-Implicit[`Implicit`] | Whether a noexcept‐specifier was user‐written. | link:#clang-mrdocs-NoexceptInfo-Kind[`Kind`] | The evaluated exception specification. | link:#clang-mrdocs-NoexceptInfo-Operand[`Operand`] | The operand of the noexcept‐specifier, if any. |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-toString-0d1[`toString`] | Convert NoexceptInfo to a string. |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-NoexceptInfo[NoexceptInfo] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Whether a noexcept‐specifier was user‐written. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool Implicit = true; ---- The evaluated exception specification. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-NoexceptKind[NoexceptKind] Kind = NoexceptKind::False; ---- The operand of the noexcept‐specifier, if any. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string Operand; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct NonTypeTArg final : link:#clang-mrdocs-IsTArg-01[IsTArg<TArgKind::NonType>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-IsTArg-01[IsTArg<TArgKind::NonType>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-NonTypeTArg-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-NonTypeTArg-isNonType[`isNonType`] | link:#clang-mrdocs-NonTypeTArg-isTemplate[`isTemplate`] | link:#clang-mrdocs-NonTypeTArg-isType[`isType`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-NonTypeTArg-Value[`Value`] | Template argument expression. |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-NonTypeTArg-kind_id[`kind_id`] |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-NonTypeTArg[NonTypeTArg] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNonType() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTemplate() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isType() noexcept; ---- Template argument expression. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ExprInfo[ExprInfo] Value; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TArgKind[TArgKind] kind_id; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct NonTypeTParam final : link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<TParamKind::NonType>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<TParamKind::NonType>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-NonTypeTParam-operator_3way-06[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-NonTypeTParam-isNonType[`isNonType`] | link:#clang-mrdocs-NonTypeTParam-isTemplate[`isTemplate`] | link:#clang-mrdocs-NonTypeTParam-isType[`isType`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-NonTypeTParam-Type[`Type`] | Type of the non‐type template parameter |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-NonTypeTParam-kind_id[`kind_id`] |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Template.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-NonTypeTParam-operator_3way-01[operator<=>](link:#clang-mrdocs-NonTypeTParam[NonTypeTParam] const& rhs) const; ---- [.small]#link:#clang-mrdocs-NonTypeTParam-operator_3way-01[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-NonTypeTParam-operator_3way-03[operator<=>](link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<clang::mrdocs::TParamKind::NonType>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-NonTypeTParam-operator_3way-03[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-NonTypeTParam[NonTypeTParam] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<clang::mrdocs::TParamKind::NonType>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNonType() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTemplate() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isType() noexcept; ---- Type of the non‐type template parameter == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] Type = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TParamKind[TParamKind] kind_id; ---- A compact optional. == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class EmptyPredicate = link:#clang-mrdocs-DefaultEmptyPredicate[DefaultEmptyPredicate]> class Optional; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-Optional-value_type[`value_type`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Optional-2constructor-04f[`Optional`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-Optional-operator_assign-07[`operator=`] | Assignment operators | link:#clang-mrdocs-Optional-emplace[`emplace`] | | link:#clang-mrdocs-Optional-has_value[`has_value`] | | link:#clang-mrdocs-Optional-operator_star-0c49[`operator*`] | Dereference operators | link:#clang-mrdocs-Optional-operator_ptr-0e[`operator‐>`] | Member access operators | link:#clang-mrdocs-Optional-reset[`reset`] | | link:#clang-mrdocs-Optional-value-06[`value`] | | link:#clang-mrdocs-Optional-2conversion[`operator bool`] | Conversion to `bool` | link:#clang-mrdocs-Optional-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Description This works like std::optional except the predicate is invoked to determine whether the optional is engaged. This is a space optimization. == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using value_type = T; ---- Constructors == Synopses Declared in `<mrdocs/ADT/Optional.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-2constructor-0f[Optional]() = default; ---- [.small]#link:#clang-mrdocs-Optional-2constructor-0f[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-2constructor-043[Optional](link:#clang-mrdocs-Optional[Optional] const& other) = default; ---- [.small]#link:#clang-mrdocs-Optional-2constructor-043[_» more..._]# Construct from `U` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> requires std::is_constructible_v<T, U> constexpr explicit link:#clang-mrdocs-Optional-2constructor-05[Optional](U&& u); ---- [.small]#link:#clang-mrdocs-Optional-2constructor-05[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Optional() = default; ---- Copy constructor == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Optional(link:#clang-mrdocs-Optional[Optional] const& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Construct from `U` == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> requires std::is_constructible_v<T, U> constexpr explicit Optional(U&& u); ---- == Parameters [cols=2] |=== | Name | Description | *u* | The object to move construct from |=== Assignment operators == Synopses Declared in `<mrdocs/ADT/Optional.hpp>` Copy assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional[Optional]& link:#clang-mrdocs-Optional-operator_assign-0d[operator=](link:#clang-mrdocs-Optional[Optional] const& other) = default; ---- [.small]#link:#clang-mrdocs-Optional-operator_assign-0d[_» more..._]# Move assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional[Optional]& link:#clang-mrdocs-Optional-operator_assign-03[operator=](link:#clang-mrdocs-Optional[Optional]&& other) = default; ---- [.small]#link:#clang-mrdocs-Optional-operator_assign-03[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional[Optional]& link:#clang-mrdocs-Optional-operator_assign-0a[operator=](std::nullptr_t value); ---- [.small]#link:#clang-mrdocs-Optional-operator_assign-0a[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> requires std::is_constructible_v<T, U> constexpr link:#clang-mrdocs-Optional[Optional]& link:#clang-mrdocs-Optional-operator_assign-0f[operator=](U&& u); ---- [.small]#link:#clang-mrdocs-Optional-operator_assign-0f[_» more..._]# Copy assignment operator == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional[Optional]& operator=(link:#clang-mrdocs-Optional[Optional] const& other) = default; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Move assignment operator == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional[Optional]& operator=(link:#clang-mrdocs-Optional[Optional]&& other) = default; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to move assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional[Optional]& operator=(std::nullptr_t value); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *value* | The object to assign from |=== Assignment operator == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> requires std::is_constructible_v<T, U> constexpr link:#clang-mrdocs-Optional[Optional]& operator=(U&& u); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *u* | The object to move assign from |=== == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename... Args> requires std::is_constructible_v<T, Args...> constexpr link:#clang-mrdocs-Optional-value_type[value_type]& emplace(Args...&&... args); ---- == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool has_value() const noexcept; ---- Dereference operators == Synopses Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type]& link:#clang-mrdocs-Optional-operator_star-09[operator*]() noexcept; ---- [.small]#link:#clang-mrdocs-Optional-operator_star-09[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type] const& link:#clang-mrdocs-Optional-operator_star-0c4c[operator*]() const noexcept; ---- [.small]#link:#clang-mrdocs-Optional-operator_star-0c4c[_» more..._]# == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type]& operator*() noexcept; ---- == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type] const& operator*() const noexcept; ---- Member access operators == Synopses Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type]* link:#clang-mrdocs-Optional-operator_ptr-04[operator‐>]() noexcept; ---- [.small]#link:#clang-mrdocs-Optional-operator_ptr-04[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type] const* link:#clang-mrdocs-Optional-operator_ptr-0a[operator‐>]() const noexcept; ---- [.small]#link:#clang-mrdocs-Optional-operator_ptr-0a[_» more..._]# == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type]* operator‐>() noexcept; ---- == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type] const* operator‐>() const noexcept; ---- == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void reset(); ---- == Synopses Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type]& link:#clang-mrdocs-Optional-value-07[value]() & noexcept; ---- [.small]#link:#clang-mrdocs-Optional-value-07[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type] const& link:#clang-mrdocs-Optional-value-04[value]() const & noexcept; ---- [.small]#link:#clang-mrdocs-Optional-value-04[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type]&& link:#clang-mrdocs-Optional-value-08[value]() && noexcept; ---- [.small]#link:#clang-mrdocs-Optional-value-08[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type] const&& link:#clang-mrdocs-Optional-value-09[value]() const && noexcept; ---- [.small]#link:#clang-mrdocs-Optional-value-09[_» more..._]# == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type]& value() & noexcept; ---- == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type] const& value() const & noexcept; ---- == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type]&& value() && noexcept; ---- == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Optional-value_type[value_type] const&& value() const && noexcept; ---- Conversion to `bool` == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit operator bool() const noexcept; ---- == Return Value The object converted to `bool` Three‐way comparison operator == Synopsis Declared in `<mrdocs/ADT/Optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-Optional[Optional] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Reference to output stream used by handlebars == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class OutputRef; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-OutputRef-2constructor-0f[`OutputRef`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-OutputRef-getIndent[`getIndent`] | | link:#clang-mrdocs-OutputRef-setIndent[`setIndent`] | |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-operator_lshift-03[clang::mrdocs::operator<<]` | Write to output | `link:#clang-mrdocs-operator_lshift-00[clang::mrdocs::operator<<]` | Write to output | `link:#clang-mrdocs-operator_lshift-09[clang::mrdocs::operator<<]` | Write to output | `link:#clang-mrdocs-operator_lshift-02[clang::mrdocs::operator<<]` | Write to output | `link:#clang-mrdocs-Handlebars[clang::mrdocs::Handlebars]` | A handlebars environment |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-HTMLEscape-01[`HTMLEscape`] | HTML escapes the specified string |=== == Description This class is used to internally pass an output stream to the handlebars environment. It allows many types to be used as output streams, including std::string, std::ostream, llvm::raw_string_ostream, and others. Constructors == Synopses Declared in `<mrdocs/Support/Handlebars.hpp>` Constructor for std::ostream& output [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template</* implementation-defined */ Os> requires std::is_convertible_v<Os*, std::ostream*> && (!detail::StdLHROStreamable<Os>) link:#clang-mrdocs-OutputRef-2constructor-09[OutputRef](Os& os); ---- [.small]#link:#clang-mrdocs-OutputRef-2constructor-09[_» more..._]# Constructor for llvm::raw_string_ostream output [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template</* implementation-defined */ Os> requires std::is_convertible_v<Os*, std::ostream*> link:#clang-mrdocs-OutputRef-2constructor-0c[OutputRef](Os& os); ---- [.small]#link:#clang-mrdocs-OutputRef-2constructor-0c[_» more..._]# Constructor for std::string output [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template</* implementation-defined */ St> requires std::same_as<typename St::value_type, char> link:#clang-mrdocs-OutputRef-2constructor-02[OutputRef](St& st); ---- [.small]#link:#clang-mrdocs-OutputRef-2constructor-02[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *os* | The output stream to write to | *st* | The string to append to |=== Constructor for std::ostream& output == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template</* implementation-defined */ Os> requires std::is_convertible_v<Os*, std::ostream*> && (!detail::StdLHROStreamable<Os>) OutputRef(Os& os); ---- == Parameters [cols=2] |=== | Name | Description | *os* | The output stream to write to |=== Constructor for llvm::raw_string_ostream output == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template</* implementation-defined */ Os> requires std::is_convertible_v<Os*, std::ostream*> OutputRef(Os& os); ---- == Parameters [cols=2] |=== | Name | Description | *os* | The output stream to write to |=== Constructor for std::string output == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template</* implementation-defined */ St> requires std::same_as<typename St::value_type, char> OutputRef(St& st); ---- == Parameters [cols=2] |=== | Name | Description | *st* | The string to append to |=== == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t getIndent() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setIndent(std::size_t indent); ---- Represents a set of function overloads. == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct OverloadsInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Overloads>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Overloads>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-OverloadsInfo-2constructor-05[`OverloadsInfo`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-OverloadsInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-OverloadsInfo-isConcept[`isConcept`] | link:#clang-mrdocs-OverloadsInfo-isEnum[`isEnum`] | link:#clang-mrdocs-OverloadsInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-OverloadsInfo-isFunction[`isFunction`] | link:#clang-mrdocs-OverloadsInfo-isGuide[`isGuide`] | link:#clang-mrdocs-OverloadsInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-OverloadsInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-OverloadsInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-OverloadsInfo-isRecord[`isRecord`] | link:#clang-mrdocs-OverloadsInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-OverloadsInfo-isUsing[`isUsing`] | link:#clang-mrdocs-OverloadsInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-OverloadsInfo-Class[`Class`] | The class of the functions. | link:#clang-mrdocs-OverloadsInfo-Members[`Members`] | The members of the overload set. | link:#clang-mrdocs-OverloadsInfo-OverloadedOperator[`OverloadedOperator`] | The overloaded operator, if any. | link:#clang-mrdocs-OverloadsInfo-ReturnType[`ReturnType`] | Info about the return type of this function. |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-OverloadsInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== Constructors == Synopses Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` Construct from `SymbolID` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-OverloadsInfo-2constructor-0b[OverloadsInfo](link:#clang-mrdocs-SymbolID[SymbolID] const& ID) noexcept; ---- [.small]#link:#clang-mrdocs-OverloadsInfo-2constructor-0b[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-OverloadsInfo-2constructor-00[OverloadsInfo]( link:#clang-mrdocs-SymbolID[SymbolID] const& Parent, std::string_view Name, link:#clang-mrdocs-AccessKind[AccessKind] Access, bool isStatic) noexcept; ---- [.small]#link:#clang-mrdocs-OverloadsInfo-2constructor-00[_» more..._]# Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit OverloadsInfo(link:#clang-mrdocs-SymbolID[SymbolID] const& ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to copy construct from |=== == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit OverloadsInfo( link:#clang-mrdocs-SymbolID[SymbolID] const& Parent, std::string_view Name, link:#clang-mrdocs-AccessKind[AccessKind] Access, bool isStatic) noexcept; ---- Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Overloads>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- The class of the functions. == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-FunctionClass[FunctionClass] Class = FunctionClass::Normal; ---- The members of the overload set. == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Members; ---- The overloaded operator, if any. == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OperatorKind[OperatorKind] OverloadedOperator = OperatorKind::None; ---- Info about the return type of this function. == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] ReturnType = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- Represents a single function parameter == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct Param final ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Param-2constructor-00[`Param`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-Param-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-Param-Default[`Default`] | The default argument for this parameter, if any | link:#clang-mrdocs-Param-Name[`Name`] | The parameter name. | link:#clang-mrdocs-Param-Type[`Type`] | The type of this parameter |=== Constructors == Synopses Declared in `<mrdocs/Metadata/Info/Function.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Param-2constructor-08[Param]() = default; ---- [.small]#link:#clang-mrdocs-Param-2constructor-08[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Param-2constructor-06[Param]( link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>]&& type, std::string&& name, std::string&& def_arg); ---- [.small]#link:#clang-mrdocs-Param-2constructor-06[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Param() = default; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Param( link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>]&& type, std::string&& name, std::string&& def_arg); ---- Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-Param[Param] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== The default argument for this parameter, if any == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Optional[Optional<std::string>] Default; ---- The parameter name. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Optional[Optional<std::string>] Name; ---- The type of this parameter == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] Type = std::nullopt; ---- The result of a parse operation. == Synopsis Declared in `<mrdocs/Support/Parse.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ParseResult; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ParseResult-2conversion[`operator bool`] | Conversion to `bool` |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-ParseResult-ec[`ec`] | link:#clang-mrdocs-ParseResult-ptr[`ptr`] |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-operator_eq-01[clang::mrdocs::operator==]` | Equality operator |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-parse-02[`parse`] | Parse a string view |=== == Description This class holds the result of a parse operation. The structure is similar to `std::from_chars_result`, where we have a `ptr` member that points to the first character not parsed, and a `ec` member that holds the error code. If parsing was successful, then `ec` stores a default constructed `Error` object, which indicates success. The `operator bool` can also be used to check for success. The typical format of a parsing function is: [,cpp] ---- ParseResult parseType( char const* first, char const* last, Type& value); ---- where more parameters can be defined as needed for parsing options. Conversion to `bool` == Synopsis Declared in `<mrdocs/Support/Parse.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit operator bool() const noexcept; ---- == Return Value The object converted to `bool` == Synopsis Declared in `<mrdocs/Support/Parse.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Error[Error] ec; ---- == Synopsis Declared in `<mrdocs/Support/Parse.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char const* ptr; ---- A glob pattern matcher for paths == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class PathGlobPattern; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-PathGlobPattern-2constructor-07[`PathGlobPattern`] [.small]#[constructor]# | Construct an empty PathGlobPattern. | link:#clang-mrdocs-PathGlobPattern-isLiteral[`isLiteral`] | Checks if the glob pattern is a literal string. | link:#clang-mrdocs-PathGlobPattern-match[`match`] | Matches the given string against the glob pattern. | link:#clang-mrdocs-PathGlobPattern-matchPatternPrefix[`matchPatternPrefix`] | Matches the start of a given string against the glob pattern. | link:#clang-mrdocs-PathGlobPattern-pattern[`pattern`] | Returns the glob pattern. |=== == Static Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-PathGlobPattern-create-07[`create`] | Constructs a PathGlobPattern with the given pattern. |=== == Description A glob pattern matcher where "*" does not match path separators. The pattern "*" can be used to match any number of path separators. Construct an empty PathGlobPattern. == Synopses Declared in `<mrdocs/Support/Glob.hpp>` Construct an empty PathGlobPattern. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-PathGlobPattern-2constructor-06[PathGlobPattern]() = default; ---- [.small]#link:#clang-mrdocs-PathGlobPattern-2constructor-06[_» more..._]# Construct an empty PathGlobPattern. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-PathGlobPattern-2constructor-03[PathGlobPattern](link:#clang-mrdocs-GlobPattern[GlobPattern] glob); ---- [.small]#link:#clang-mrdocs-PathGlobPattern-2constructor-03[_» more..._]# Construct an empty PathGlobPattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr PathGlobPattern() = default; ---- == Description An empty PathGlobPattern will never match any string. Construct an empty PathGlobPattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit PathGlobPattern(link:#clang-mrdocs-GlobPattern[GlobPattern] glob); ---- == Description An empty PathGlobPattern will never match any string. == Parameters [cols=2] |=== | Name | Description | *glob* | The object to construct from |=== Checks if the glob pattern is a literal string. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isLiteral() const; ---- == Description This function determines if the glob pattern does not contain any special characters. In other words, it matches a single string. == Return Value true if the glob pattern is a literal string, false otherwise. Matches the given string against the glob pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool match(std::string_view const str) const; ---- == Return Value true if the string matches the pattern, false otherwise. == Parameters [cols=2] |=== | Name | Description | *str* | The string to match against the pattern. |=== Matches the start of a given string against the glob pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool matchPatternPrefix(std::string_view prefix) const; ---- == Description This function determines if the given string with the specified `prefix` can potentially match the glob pattern. If the string matches the start of the pattern without failure, even if there are characters left in the string or the pattern, the function returns true. == Return Value true if the string prefix matches the pattern, false otherwise. == Parameters [cols=2] |=== | Name | Description | *prefix* | The string to match against the pattern. |=== Returns the glob pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view pattern() const; ---- == Return Value The glob pattern as a string view. Constructs a PathGlobPattern with the given pattern. == Synopses Declared in `<mrdocs/Support/Glob.hpp>` Constructs a PathGlobPattern with the given pattern. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<PathGlobPattern>] link:#clang-mrdocs-PathGlobPattern-create-0f[create](std::string_view const pattern); ---- [.small]#link:#clang-mrdocs-PathGlobPattern-create-0f[_» more..._]# Constructs a PathGlobPattern with the given pattern. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<PathGlobPattern>] link:#clang-mrdocs-PathGlobPattern-create-01[create]( std::string_view const pattern, std::optional<std::size_t> maxSubGlobs); ---- [.small]#link:#clang-mrdocs-PathGlobPattern-create-01[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *pattern* | The glob pattern to use for matching. | *maxSubGlobs* | The maximum number of subpatterns allowed. |=== Constructs a PathGlobPattern with the given pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<PathGlobPattern>] create(std::string_view const pattern); ---- == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *pattern* | The glob pattern to use for matching. |=== Constructs a PathGlobPattern with the given pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<PathGlobPattern>] create( std::string_view const pattern, std::optional<std::size_t> maxSubGlobs); ---- == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *pattern* | The glob pattern to use for matching. | *maxSubGlobs* | The maximum number of subpatterns allowed. |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct PointerTypeInfo final : link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Pointer>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::Pointer>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-PointerTypeInfo-operator_3way-08[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-PointerTypeInfo-isArray[`isArray`] | link:#clang-mrdocs-PointerTypeInfo-isAuto[`isAuto`] | link:#clang-mrdocs-PointerTypeInfo-isDecltype[`isDecltype`] | link:#clang-mrdocs-PointerTypeInfo-isFunction[`isFunction`] | link:#clang-mrdocs-PointerTypeInfo-isLValueReference[`isLValueReference`] | link:#clang-mrdocs-PointerTypeInfo-isMemberPointer[`isMemberPointer`] | link:#clang-mrdocs-PointerTypeInfo-isNamed[`isNamed`] | link:#clang-mrdocs-PointerTypeInfo-isPointer[`isPointer`] | link:#clang-mrdocs-PointerTypeInfo-isRValueReference[`isRValueReference`] |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-PointerTypeInfo-PointeeType[`PointeeType`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-PointerTypeInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-innerType-0f5[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerType-0f7[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0c[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0d[`innerTypePtr`] | Return the inner type. |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-PointerTypeInfo-operator_3way-0d[operator<=>](link:#clang-mrdocs-PointerTypeInfo[PointerTypeInfo] const& rhs) const; ---- [.small]#link:#clang-mrdocs-PointerTypeInfo-operator_3way-0d[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-PointerTypeInfo-operator_3way-0a[operator<=>](link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Pointer>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-PointerTypeInfo-operator_3way-0a[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-PointerTypeInfo[PointerTypeInfo] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::Pointer>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isArray() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isAuto() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isDecltype() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isLValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isMemberPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamed() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] PointeeType = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TypeKind[TypeKind] kind_id; ---- A polymorphic value‐type. == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> class Polymorphic; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-Polymorphic-const_pointer[`const_pointer`] | link:#clang-mrdocs-Polymorphic-pointer[`pointer`] | link:#clang-mrdocs-Polymorphic-value_type[`value_type`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Polymorphic-2constructor-0ba[`Polymorphic`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-Polymorphic-2destructor[`~Polymorphic`] [.small]#[destructor]# | Destructor | link:#clang-mrdocs-Polymorphic-operator_assign-0a[`operator=`] | Assignment operators | link:#clang-mrdocs-Polymorphic-operator_star-014[`operator*`] | Dereference operators | link:#clang-mrdocs-Polymorphic-operator_ptr-0fb[`operator‐>`] | Member access operators | link:#clang-mrdocs-Polymorphic-2conversion[`operator bool`] | Conversion to `bool` |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-swap-0d[clang::mrdocs::swap]` | |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-CompareDerived-00[`CompareDerived`] | Compares two polymorphic objects that have visit functions | link:#clang-mrdocs-innermostType-00[`innermostType`] | Return the innermost type. | link:#clang-mrdocs-innermostType-0d[`innermostType`] | Return the innermost type. |=== == Description This class supports polymorphic objects with value‐like semantics. It implements a tweaked version of std::polymorphic, based on the reference implementation for P3019R14. Differences are: It supports nullability, which was originally supported in P3019 through std::optional specializations, but was later removed from the paper. It implements comparison operators with a very project specific design. Fixed allocator, not parametrizable. No initializer_list constructor. == Deep copies To copy polymorphic objects, the class uses the copy constructor of the owned derived‐type object when copying to another value. Similarly, to allow correct destruction of derived objects, it uses the destructor of the owned derived‐type object in the destructor. == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_pointer = T const*; ---- == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using pointer = T*; ---- == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using value_type = T; ---- Constructors == Synopses Declared in `<mrdocs/ADT/Polymorphic.hpp>` Default constructs the value type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit link:#clang-mrdocs-Polymorphic-2constructor-04[Polymorphic](); ---- [.small]#link:#clang-mrdocs-Polymorphic-2constructor-04[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Polymorphic-2constructor-0e[Polymorphic](link:#clang-mrdocs-Polymorphic[Polymorphic] const& V); ---- [.small]#link:#clang-mrdocs-Polymorphic-2constructor-0e[_» more..._]# Move constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Polymorphic-2constructor-0c[Polymorphic](link:#clang-mrdocs-Polymorphic[Polymorphic]&& V) noexcept; ---- [.small]#link:#clang-mrdocs-Polymorphic-2constructor-0c[_» more..._]# Empty constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Polymorphic-2constructor-05[Polymorphic](std::nullopt_t value); ---- [.small]#link:#clang-mrdocs-Polymorphic-2constructor-05[_» more..._]# Forwarding constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> constexpr explicit link:#clang-mrdocs-Polymorphic-2constructor-03[Polymorphic](U&& u) requires (not std::same_as<Polymorphic, std::remove_cvref_t<U>>) && std::copy_constructible<std::remove_cvref_t<U>> && std::derived_from<std::remove_cvref_t<U>, T>; ---- [.small]#link:#clang-mrdocs-Polymorphic-2constructor-03[_» more..._]# In place constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Ts> constexpr explicit link:#clang-mrdocs-Polymorphic-2constructor-0b2[Polymorphic]( std::in_place_type_t<U>, Ts...&&... ts) requires std::same_as<std::remove_cvref_t<U>, U> && std::constructible_from<U, Ts &&...> && std::copy_constructible<U> && std::derived_from<U, T>; ---- [.small]#link:#clang-mrdocs-Polymorphic-2constructor-0b2[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *u* | The object to copy. | *ts* | Arguments to forward to the constructor of U. |=== Default constructs the value type. == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit Polymorphic(); ---- Copy constructor == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Polymorphic(link:#clang-mrdocs-Polymorphic[Polymorphic] const& V); ---- == Parameters [cols=2] |=== | Name | Description | *V* | The object to copy construct from |=== Move constructor == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Polymorphic(link:#clang-mrdocs-Polymorphic[Polymorphic]&& V) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *V* | The object to move construct from |=== Empty constructor. == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Polymorphic(std::nullopt_t value); ---- == Description Ensures: this is empty. == Parameters [cols=2] |=== | Name | Description | *value* | The object to construct from |=== Forwarding constructor. == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> constexpr explicit Polymorphic(U&& u) requires (not std::same_as<Polymorphic, std::remove_cvref_t<U>>) && std::copy_constructible<std::remove_cvref_t<U>> && std::derived_from<std::remove_cvref_t<U>, T>; ---- == Parameters [cols=2] |=== | Name | Description | *u* | The object to copy. |=== In place constructor == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Ts> constexpr explicit Polymorphic( std::in_place_type_t<U>, Ts...&&... ts) requires std::same_as<std::remove_cvref_t<U>, U> && std::constructible_from<U, Ts &&...> && std::copy_constructible<U> && std::derived_from<U, T>; ---- == Parameters [cols=2] |=== | Name | Description | *ts* | Arguments to forward to the constructor of U. |=== Destructor == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr ~Polymorphic(); ---- Assignment operators == Synopses Declared in `<mrdocs/ADT/Polymorphic.hpp>` Copy assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Polymorphic[Polymorphic]& link:#clang-mrdocs-Polymorphic-operator_assign-0d[operator=](link:#clang-mrdocs-Polymorphic[Polymorphic] const& V); ---- [.small]#link:#clang-mrdocs-Polymorphic-operator_assign-0d[_» more..._]# Move assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Polymorphic[Polymorphic]& link:#clang-mrdocs-Polymorphic-operator_assign-08[operator=](link:#clang-mrdocs-Polymorphic[Polymorphic]&& V) noexcept; ---- [.small]#link:#clang-mrdocs-Polymorphic-operator_assign-08[_» more..._]# Copy assignment operator == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Polymorphic[Polymorphic]& operator=(link:#clang-mrdocs-Polymorphic[Polymorphic] const& V); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *V* | The object to copy assign from |=== Move assignment operator == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Polymorphic[Polymorphic]& operator=(link:#clang-mrdocs-Polymorphic[Polymorphic]&& V) noexcept; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *V* | The object to move assign from |=== Dereference operators == Synopses Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T& link:#clang-mrdocs-Polymorphic-operator_star-01e[operator*]() noexcept; ---- [.small]#link:#clang-mrdocs-Polymorphic-operator_star-01e[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T const& link:#clang-mrdocs-Polymorphic-operator_star-08[operator*]() const noexcept; ---- [.small]#link:#clang-mrdocs-Polymorphic-operator_star-08[_» more..._]# == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T& operator*() noexcept; ---- == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr T const& operator*() const noexcept; ---- Member access operators == Synopses Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr link:#clang-mrdocs-Polymorphic-pointer[pointer] link:#clang-mrdocs-Polymorphic-operator_ptr-0d[operator‐>]() noexcept; ---- [.small]#link:#clang-mrdocs-Polymorphic-operator_ptr-0d[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr link:#clang-mrdocs-Polymorphic-const_pointer[const_pointer] link:#clang-mrdocs-Polymorphic-operator_ptr-0ff[operator‐>]() const noexcept; ---- [.small]#link:#clang-mrdocs-Polymorphic-operator_ptr-0ff[_» more..._]# == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr link:#clang-mrdocs-Polymorphic-pointer[pointer] operator‐>() noexcept; ---- == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr link:#clang-mrdocs-Polymorphic-const_pointer[const_pointer] operator‐>() const noexcept; ---- Conversion to `bool` == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr explicit operator bool() const noexcept; ---- == Return Value The object converted to `bool` == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct RValueReferenceTypeInfo final : link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::RValueReference>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<TypeKind::RValueReference>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-RValueReferenceTypeInfo-operator_3way-0742[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-RValueReferenceTypeInfo-isArray[`isArray`] | link:#clang-mrdocs-RValueReferenceTypeInfo-isAuto[`isAuto`] | link:#clang-mrdocs-RValueReferenceTypeInfo-isDecltype[`isDecltype`] | link:#clang-mrdocs-RValueReferenceTypeInfo-isFunction[`isFunction`] | link:#clang-mrdocs-RValueReferenceTypeInfo-isLValueReference[`isLValueReference`] | link:#clang-mrdocs-RValueReferenceTypeInfo-isMemberPointer[`isMemberPointer`] | link:#clang-mrdocs-RValueReferenceTypeInfo-isNamed[`isNamed`] | link:#clang-mrdocs-RValueReferenceTypeInfo-isPointer[`isPointer`] | link:#clang-mrdocs-RValueReferenceTypeInfo-isRValueReference[`isRValueReference`] |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-RValueReferenceTypeInfo-PointeeType[`PointeeType`] |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-RValueReferenceTypeInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-innerType-0f5[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerType-0f7[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0c[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0d[`innerTypePtr`] | Return the inner type. |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-RValueReferenceTypeInfo-operator_3way-0744[operator<=>](link:#clang-mrdocs-RValueReferenceTypeInfo[RValueReferenceTypeInfo] const& rhs) const; ---- [.small]#link:#clang-mrdocs-RValueReferenceTypeInfo-operator_3way-0744[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-RValueReferenceTypeInfo-operator_3way-03[operator<=>](link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::RValueReference>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-RValueReferenceTypeInfo-operator_3way-03[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-RValueReferenceTypeInfo[RValueReferenceTypeInfo] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase<clang::mrdocs::TypeKind::RValueReference>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isArray() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isAuto() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isDecltype() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isLValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isMemberPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamed() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] PointeeType = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TypeKind[TypeKind] kind_id; ---- Range to help range‐for loops identify first and last. == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Container> class RangeFor; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-RangeFor-07-iterator[`iterator`] | link:#clang-mrdocs-RangeFor-07-value_type[`value_type`] | link:#clang-mrdocs-RangeFor-07-const_pointer[`const_pointer`] | link:#clang-mrdocs-RangeFor-07-const_reference[`const_reference`] | link:#clang-mrdocs-RangeFor-07-difference_type[`difference_type`] | link:#clang-mrdocs-RangeFor-07-pointer[`pointer`] | link:#clang-mrdocs-RangeFor-07-reference[`reference`] | link:#clang-mrdocs-RangeFor-07-size_type[`size_type`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-RangeFor-07-2constructor[`RangeFor`] [.small]#[constructor]# | Construct from `Container` | link:#clang-mrdocs-RangeFor-07-begin[`begin`] | | link:#clang-mrdocs-RangeFor-07-end[`end`] | |=== == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_pointer = link:#clang-mrdocs-RangeFor-07-value_type[value_type] const*; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using const_reference = link:#clang-mrdocs-RangeFor-07-value_type[value_type] const&; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using difference_type = std::ptrdiff_t; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using pointer = link:#clang-mrdocs-RangeFor-07-value_type[value_type]*; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using reference = link:#clang-mrdocs-RangeFor-07-value_type[value_type]&; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using size_type = std::size_t; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class iterator; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-RangeFor-07-iterator-iterator_category[`iterator_category`] | link:#clang-mrdocs-RangeFor-07-iterator-pointer[`pointer`] | link:#clang-mrdocs-RangeFor-07-iterator-reference[`reference`] | link:#clang-mrdocs-RangeFor-07-iterator-size_type[`size_type`] | link:#clang-mrdocs-RangeFor-07-iterator-value_type[`value_type`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-RangeFor-07-iterator-2constructor-0c[`iterator`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-RangeFor-07-iterator-operator_assign[`operator=`] | Copy assignment operator | link:#clang-mrdocs-RangeFor-07-iterator-operator_star[`operator*`] | | link:#clang-mrdocs-RangeFor-07-iterator-operator_inc-08[`operator++`] | Increment operators | link:#clang-mrdocs-RangeFor-07-iterator-operator_ptr[`operator‐>`] | | link:#clang-mrdocs-RangeFor-07-iterator-operator_eq[`operator==`] | Equality operator | link:#clang-mrdocs-RangeFor-07-iterator-operator_not_eq[`operator!=`] | Inequality operator |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-RangeFor-07-value_type[clang::mrdocs::RangeFor::value_type]` | | `link:#clang-mrdocs-RangeFor-07[clang::mrdocs::RangeFor]` | Range to help range‐for loops identify first and last. |=== == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using iterator_category = std::iterator_traits<Container::iterator>::iterator_category; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using pointer = void; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using reference = link:#clang-mrdocs-RangeFor-07-iterator-value_type[value_type]; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using size_type = std::size_t; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using value_type = link:#clang-mrdocs-RangeFor-07-value_type[RangeFor<Container>::value_type]; ---- Constructors == Synopses Declared in `<mrdocs/Support/RangeFor.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-iterator-2constructor-04[iterator]() = default; ---- [.small]#link:#clang-mrdocs-RangeFor-07-iterator-2constructor-04[_» more..._]# Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-iterator-2constructor-0e[iterator](link:#clang-mrdocs-RangeFor-07-iterator[iterator] const& other) = default; ---- [.small]#link:#clang-mrdocs-RangeFor-07-iterator-2constructor-0e[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- iterator() = default; ---- Copy constructor == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- iterator(link:#clang-mrdocs-RangeFor-07-iterator[iterator] const& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Copy assignment operator == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-iterator[iterator]& operator=(link:#clang-mrdocs-RangeFor-07-iterator[iterator] const& other) = default; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-iterator-reference[reference] operator*() const noexcept; ---- Increment operators == Synopses Declared in `<mrdocs/Support/RangeFor.hpp>` Increment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-iterator[iterator]& link:#clang-mrdocs-RangeFor-07-iterator-operator_inc-094[operator++]() noexcept; ---- [.small]#link:#clang-mrdocs-RangeFor-07-iterator-operator_inc-094[_» more..._]# Increment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-iterator[iterator] link:#clang-mrdocs-RangeFor-07-iterator-operator_inc-097[operator++](int) noexcept; ---- [.small]#link:#clang-mrdocs-RangeFor-07-iterator-operator_inc-097[_» more..._]# Increment operator == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-iterator[iterator]& operator++() noexcept; ---- == Return Value Reference to the current object Increment operator == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-iterator[iterator] operator++(int) noexcept; ---- == Return Value Another instance of the object == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-iterator-reference[reference] operator‐>() const noexcept; ---- Equality operator == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==(link:#clang-mrdocs-RangeFor-07-iterator[iterator] const& it) const noexcept; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *it* | The right operand |=== Inequality operator == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator!=(link:#clang-mrdocs-RangeFor-07-iterator[iterator] const& it) const noexcept; ---- == Return Value `true` if the objects are not equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *it* | The right operand |=== == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct value_type; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-RangeFor-07-value_type-operator_ptr[`operator‐>`] | Member access operator |=== == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-RangeFor-07-value_type-first[`first`] | link:#clang-mrdocs-RangeFor-07-value_type-last[`last`] | link:#clang-mrdocs-RangeFor-07-value_type-value[`value`] |=== Member access operator == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-value_type[value_type] const* operator‐>() const noexcept; ---- == Return Value Pointer to the current object == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool const first; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool const last; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Container::value_type const& value; ---- Construct from `Container` == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit RangeFor(Container const& C) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *C* | The object to copy construct from |=== == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-iterator[iterator] begin() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RangeFor-07-iterator[iterator] end() const noexcept; ---- Metadata for struct, class, or union. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct RecordInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Record>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Record>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-RecordInfo-2constructor[`RecordInfo`] [.small]#[constructor]# | Construct from `SymbolID` | link:#clang-mrdocs-RecordInfo-operator_3way-02[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-RecordInfo-isConcept[`isConcept`] | link:#clang-mrdocs-RecordInfo-isEnum[`isEnum`] | link:#clang-mrdocs-RecordInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-RecordInfo-isFunction[`isFunction`] | link:#clang-mrdocs-RecordInfo-isGuide[`isGuide`] | link:#clang-mrdocs-RecordInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-RecordInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-RecordInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-RecordInfo-isRecord[`isRecord`] | link:#clang-mrdocs-RecordInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-RecordInfo-isUsing[`isUsing`] | link:#clang-mrdocs-RecordInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-RecordInfo-Bases[`Bases`] | List of immediate bases. | link:#clang-mrdocs-RecordInfo-Derived[`Derived`] | List of derived classes | link:#clang-mrdocs-RecordInfo-Friends[`Friends`] | List of friends. | link:#clang-mrdocs-RecordInfo-Interface[`Interface`] | Lists of members. | link:#clang-mrdocs-RecordInfo-IsFinal[`IsFinal`] | | link:#clang-mrdocs-RecordInfo-IsFinalDestructor[`IsFinalDestructor`] | | link:#clang-mrdocs-RecordInfo-IsTypeDef[`IsTypeDef`] | | link:#clang-mrdocs-RecordInfo-KeyKind[`KeyKind`] | Kind of record this is (class, struct, or union). | link:#clang-mrdocs-RecordInfo-Template[`Template`] | When present, this record is a template or specialization. |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-RecordInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit RecordInfo(link:#clang-mrdocs-SymbolID[SymbolID] const& ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to copy construct from |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Info/Record.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-RecordInfo-operator_3way-04[operator<=>](link:#clang-mrdocs-RecordInfo[RecordInfo] const& other) const; ---- [.small]#link:#clang-mrdocs-RecordInfo-operator_3way-04[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-RecordInfo-operator_3way-0e[operator<=>](link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Record>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-RecordInfo-operator_3way-0e[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-RecordInfo[RecordInfo] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Record>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- List of immediate bases. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<BaseInfo> Bases; ---- List of derived classes == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Derived; ---- List of friends. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<FriendInfo> Friends; ---- Lists of members. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RecordInterface[RecordInterface] Interface; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsFinal = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsFinalDestructor = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsTypeDef = false; ---- Kind of record this is (class, struct, or union). == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RecordKeyKind[RecordKeyKind] KeyKind = RecordKeyKind::Struct; ---- When present, this record is a template or specialization. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<TemplateInfo> Template; ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- The aggregated interface for a given struct, class, or union. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class RecordInterface; ---- == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-RecordInterface-Private[`Private`] | The aggregated private interfaces. | link:#clang-mrdocs-RecordInterface-Protected[`Protected`] | The aggregated protected interfaces. | link:#clang-mrdocs-RecordInterface-Public[`Public`] | The aggregated public interfaces. |=== == Description This class represents the public, protected, and private interfaces of a record. It is used to generate the "interface" value of the DOM for symbols that represent records or namespaces. The interface is not part of the Corpus. It is a temporary structure generated to aggregate the symbols of a record. This structure is provided to the user via the DOM. While the members of a Namespace are directly represented with a Tranche, the members of a Record are represented with an Interface. The aggregated private interfaces. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RecordTranche[RecordTranche] Private; ---- == Description This tranche contains all private members of a record or namespace. The aggregated protected interfaces. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RecordTranche[RecordTranche] Protected; ---- == Description This tranche contains all protected members of a record or namespace. The aggregated public interfaces. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-RecordTranche[RecordTranche] Public; ---- == Description This tranche contains all public members of a record or namespace. A group of members that have the same access specifier. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct RecordTranche; ---- == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-RecordTranche-Concepts[`Concepts`] | link:#clang-mrdocs-RecordTranche-Enums[`Enums`] | link:#clang-mrdocs-RecordTranche-Functions[`Functions`] | link:#clang-mrdocs-RecordTranche-Guides[`Guides`] | link:#clang-mrdocs-RecordTranche-NamespaceAliases[`NamespaceAliases`] | link:#clang-mrdocs-RecordTranche-Records[`Records`] | link:#clang-mrdocs-RecordTranche-StaticFunctions[`StaticFunctions`] | link:#clang-mrdocs-RecordTranche-StaticVariables[`StaticVariables`] | link:#clang-mrdocs-RecordTranche-Typedefs[`Typedefs`] | link:#clang-mrdocs-RecordTranche-Usings[`Usings`] | link:#clang-mrdocs-RecordTranche-Variables[`Variables`] |=== == Description This struct represents a collection of symbols that share the same access specifier within a record. It includes one vector for each info type allowed in a record, and individual vectors for static functions, types, and function overloads. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Concepts; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Enums; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Functions; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Guides; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> NamespaceAliases; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Records; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> StaticFunctions; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> StaticVariables; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Typedefs; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Usings; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> Variables; ---- Reference directories used to resolve paths == Synopsis Declared in `<mrdocs/Config/ReferenceDirectories.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ReferenceDirectories; ---- == Data Members [cols=1] |=== | Name | link:#clang-mrdocs-ReferenceDirectories-cwd[`cwd`] | link:#clang-mrdocs-ReferenceDirectories-mrdocsRoot[`mrdocsRoot`] |=== == Description These are the main reference directories used to resolve paths in the application. All other reference directories come directly from the configuration file. == Synopsis Declared in `<mrdocs/Config/ReferenceDirectories.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string cwd; ---- == Synopsis Declared in `<mrdocs/Config/ReferenceDirectories.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string mrdocsRoot; ---- == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> class ScopeExit; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ScopeExit-04-2constructor[`ScopeExit`] [.small]#[constructor]# | Construct from `F` | link:#clang-mrdocs-ScopeExit-04-2destructor[`~ScopeExit`] [.small]#[destructor]# | Destructor | link:#clang-mrdocs-ScopeExit-04-dismiss[`dismiss`] | |=== Construct from `F` == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit ScopeExit(F onExitScope); ---- == Parameters [cols=2] |=== | Name | Description | *onExitScope* | The object to construct from |=== Destructor == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~ScopeExit(); ---- == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void dismiss(); ---- == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> class ScopeExitRestore; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ScopeExitRestore-05-2constructor-01[`ScopeExitRestore`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-ScopeExitRestore-05-2destructor[`~ScopeExitRestore`] [.small]#[destructor]# | Destructor | link:#clang-mrdocs-ScopeExitRestore-05-dismiss[`dismiss`] | |=== Constructors == Synopses Declared in `<mrdocs/Support/ScopeExit.hpp>` Construct from `T` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-ScopeExitRestore-05-2constructor-0a[ScopeExitRestore](T& ref); ---- [.small]#link:#clang-mrdocs-ScopeExitRestore-05-2constructor-0a[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<T> T2> explicit link:#clang-mrdocs-ScopeExitRestore-05-2constructor-0d[ScopeExitRestore]( T& ref, T2 next); ---- [.small]#link:#clang-mrdocs-ScopeExitRestore-05-2constructor-0d[_» more..._]# Construct from `T` == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit ScopeExitRestore(T& ref); ---- == Parameters [cols=2] |=== | Name | Description | *ref* | The object to copy construct from |=== == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<T> T2> explicit ScopeExitRestore( T& ref, T2 next); ---- Destructor == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~ScopeExitRestore(); ---- == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void dismiss(); ---- Stores source information for a declaration. == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct SourceInfo; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-SourceInfo-2destructor[`~SourceInfo`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-SourceInfo-asSourceInfo-02[`asSourceInfo`] | | link:#clang-mrdocs-SourceInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-SourceInfo-DefLoc[`DefLoc`] | Location where the entity was defined | link:#clang-mrdocs-SourceInfo-Loc[`Loc`] | Locations where the entity was declared. |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-SourceInfo-2constructor[`SourceInfo`] [.small]#[constructor]# | Default constructor |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-Info[`Info`] | Base class with common properties of all symbols |=== Destructor == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr virtual ~SourceInfo() = default; ---- == Synopses Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-SourceInfo[SourceInfo] const& link:#clang-mrdocs-SourceInfo-asSourceInfo-03[asSourceInfo]() const noexcept; ---- [.small]#link:#clang-mrdocs-SourceInfo-asSourceInfo-03[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-SourceInfo[SourceInfo]& link:#clang-mrdocs-SourceInfo-asSourceInfo-0e[asSourceInfo]() noexcept; ---- [.small]#link:#clang-mrdocs-SourceInfo-asSourceInfo-0e[_» more..._]# == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-SourceInfo[SourceInfo] const& asSourceInfo() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-SourceInfo[SourceInfo]& asSourceInfo() noexcept; ---- Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-SourceInfo[SourceInfo] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Location where the entity was defined == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OptionalLocation[OptionalLocation] DefLoc; ---- == Description KRYSTIAN NOTE: this is used for entities which cannot be redeclared ‐‐ regardless of whether such a declaration is actually a definition (e.g. alias‐declarations and typedef declarations are never definition). Locations where the entity was declared. == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Location> Loc; ---- == Description This does not include the definition. Default constructor == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr SourceInfo() = default; ---- A source location with filename prettification. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class SourceLocation; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-SourceLocation-2constructor[`SourceLocation`] [.small]#[constructor]# | Construct from `source_location` | link:#clang-mrdocs-SourceLocation-column[`column`] | | link:#clang-mrdocs-SourceLocation-file_name[`file_name`] | | link:#clang-mrdocs-SourceLocation-function_name[`function_name`] | | link:#clang-mrdocs-SourceLocation-line[`line`] | |=== Construct from `source_location` == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- SourceLocation(std::source_location const& loc) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *loc* | The object to copy construct from |=== == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- uint_least32_t column() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view file_name() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view function_name() const noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- uint_least32_t line() const noexcept; ---- Represents a (possibly qualified) symbol name with template arguments. == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct SpecializationNameInfo final : link:#clang-mrdocs-NameInfo[NameInfo] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-NameInfo[NameInfo]` | Represents a name for a named `TypeInfo` |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-SpecializationNameInfo-2constructor[`SpecializationNameInfo`] [.small]#[constructor]# | Default constructor | link:#clang-mrdocs-NameInfo-isIdentifier[`isIdentifier`] | | link:#clang-mrdocs-NameInfo-isSpecialization[`isSpecialization`] | | link:#clang-mrdocs-NameInfo-operator_eq[`operator==`] | Equality operator | link:#clang-mrdocs-SpecializationNameInfo-operator_3way-04[`operator<=>`] | Three‐way comparison operators |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-NameInfo-Kind[`Kind`] | The kind of name this is. | link:#clang-mrdocs-NameInfo-Name[`Name`] | The unqualified name. | link:#clang-mrdocs-NameInfo-Prefix[`Prefix`] | The parent name info, if any. | link:#clang-mrdocs-SpecializationNameInfo-TemplateArgs[`TemplateArgs`] | The template arguments. | link:#clang-mrdocs-NameInfo-id[`id`] | The SymbolID of the named symbol, if it exists. | link:#clang-mrdocs-SpecializationNameInfo-specializationID[`specializationID`] | The SymbolID of the named symbol, if it exists. |=== Default constructor == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr SpecializationNameInfo() noexcept; ---- Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Name.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-SpecializationNameInfo-operator_3way-08[operator<=>](link:#clang-mrdocs-SpecializationNameInfo[SpecializationNameInfo] const& other) const; ---- [.small]#link:#clang-mrdocs-SpecializationNameInfo-operator_3way-08[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-NameInfo-operator_3way[operator<=>](link:#clang-mrdocs-NameInfo[NameInfo] const& other) const; ---- [.small]#link:#clang-mrdocs-NameInfo-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-SpecializationNameInfo[SpecializationNameInfo] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-NameInfo[NameInfo] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== The template arguments. == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Polymorphic<TArg>> TemplateArgs; ---- The SymbolID of the named symbol, if it exists. == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-SymbolID[SymbolID] specializationID = = SymbolID::invalid; ---- == Synopsis Declared in `<mrdocs/ADT/UnorderedStringMap.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct StringHash; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-StringHash-hash_type[`hash_type`] | link:#clang-mrdocs-StringHash-is_transparent[`is_transparent`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-StringHash-operator_call-0d[`operator()`] | Function call operators |=== == Synopsis Declared in `<mrdocs/ADT/UnorderedStringMap.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using hash_type = std::hash<std::string_view>; ---- == Synopsis Declared in `<mrdocs/ADT/UnorderedStringMap.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using is_transparent = void; ---- Function call operators == Synopses Declared in `<mrdocs/ADT/UnorderedStringMap.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t link:#clang-mrdocs-StringHash-operator_call-01[operator()](std::string_view str) const; ---- [.small]#link:#clang-mrdocs-StringHash-operator_call-01[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t link:#clang-mrdocs-StringHash-operator_call-0a2[operator()](std::string const& str) const; ---- [.small]#link:#clang-mrdocs-StringHash-operator_call-0a2[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t link:#clang-mrdocs-StringHash-operator_call-0a6[operator()](char const* str) const; ---- [.small]#link:#clang-mrdocs-StringHash-operator_call-0a6[_» more..._]# == Synopsis Declared in `<mrdocs/ADT/UnorderedStringMap.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t operator()(std::string_view str) const; ---- == Synopsis Declared in `<mrdocs/ADT/UnorderedStringMap.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t operator()(std::string const& str) const; ---- == Synopsis Declared in `<mrdocs/ADT/UnorderedStringMap.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t operator()(char const* str) const; ---- A glob pattern matcher for C++ symbols == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class SymbolGlobPattern; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-SymbolGlobPattern-2constructor-05[`SymbolGlobPattern`] [.small]#[constructor]# | Construct an empty SymbolGlobPattern. | link:#clang-mrdocs-SymbolGlobPattern-isLiteral[`isLiteral`] | Checks if the glob pattern is a literal string. | link:#clang-mrdocs-SymbolGlobPattern-match[`match`] | Matches the given string against the glob pattern. | link:#clang-mrdocs-SymbolGlobPattern-matchPatternPrefix[`matchPatternPrefix`] | Matches the start of a given string against the glob pattern. | link:#clang-mrdocs-SymbolGlobPattern-pattern[`pattern`] | Returns the glob pattern. |=== == Static Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-SymbolGlobPattern-create-07[`create`] | Constructs a SymbolGlobPattern with the given pattern. |=== == Description A glob pattern matcher where "*" does not match "::". The pattern "*" can be used to match any number of "::". Construct an empty SymbolGlobPattern. == Synopses Declared in `<mrdocs/Support/Glob.hpp>` Construct an empty SymbolGlobPattern. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-SymbolGlobPattern-2constructor-0b[SymbolGlobPattern]() = default; ---- [.small]#link:#clang-mrdocs-SymbolGlobPattern-2constructor-0b[_» more..._]# Construct an empty SymbolGlobPattern. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-SymbolGlobPattern-2constructor-08[SymbolGlobPattern](link:#clang-mrdocs-GlobPattern[GlobPattern] glob); ---- [.small]#link:#clang-mrdocs-SymbolGlobPattern-2constructor-08[_» more..._]# Construct an empty SymbolGlobPattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr SymbolGlobPattern() = default; ---- == Description An empty SymbolGlobPattern will never match any string. Construct an empty SymbolGlobPattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit SymbolGlobPattern(link:#clang-mrdocs-GlobPattern[GlobPattern] glob); ---- == Description An empty SymbolGlobPattern will never match any string. == Parameters [cols=2] |=== | Name | Description | *glob* | The object to construct from |=== Checks if the glob pattern is a literal string. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isLiteral() const; ---- == Description This function determines if the glob pattern does not contain any special characters. In other words, it matches a single string. == Return Value true if the glob pattern is a literal string, false otherwise. Matches the given string against the glob pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool match(std::string_view const str) const; ---- == Return Value true if the string matches the pattern, false otherwise. == Parameters [cols=2] |=== | Name | Description | *str* | The string to match against the pattern. |=== Matches the start of a given string against the glob pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool matchPatternPrefix(std::string_view prefix) const; ---- == Description This function determines if the given string with the specified `prefix` can potentially match the glob pattern. If the string matches the start of the pattern without failure, even if there are characters left in the string or the pattern, the function returns true. == Return Value true if the string prefix matches the pattern, false otherwise. == Parameters [cols=2] |=== | Name | Description | *prefix* | The string to match against the pattern. |=== Returns the glob pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view pattern() const; ---- == Return Value The glob pattern as a string view. Constructs a SymbolGlobPattern with the given pattern. == Synopses Declared in `<mrdocs/Support/Glob.hpp>` Constructs a SymbolGlobPattern with the given pattern. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<SymbolGlobPattern>] link:#clang-mrdocs-SymbolGlobPattern-create-04[create](std::string_view const pattern); ---- [.small]#link:#clang-mrdocs-SymbolGlobPattern-create-04[_» more..._]# Constructs a SymbolGlobPattern with the given pattern. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<SymbolGlobPattern>] link:#clang-mrdocs-SymbolGlobPattern-create-0b[create]( std::string_view const pattern, std::optional<std::size_t> maxSubGlobs); ---- [.small]#link:#clang-mrdocs-SymbolGlobPattern-create-0b[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *pattern* | The glob pattern to use for matching. | *maxSubGlobs* | The maximum number of subpatterns allowed. |=== Constructs a SymbolGlobPattern with the given pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<SymbolGlobPattern>] create(std::string_view const pattern); ---- == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *pattern* | The glob pattern to use for matching. |=== Constructs a SymbolGlobPattern with the given pattern. == Synopsis Declared in `<mrdocs/Support/Glob.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-Expected-03[Expected<SymbolGlobPattern>] create( std::string_view const pattern, std::optional<std::size_t> maxSubGlobs); ---- == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *pattern* | The glob pattern to use for matching. | *maxSubGlobs* | The maximum number of subpatterns allowed. |=== A unique identifier for a symbol. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class SymbolID; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-SymbolID-value_type[`value_type`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-SymbolID-2constructor-01[`SymbolID`] [.small]#[constructor]# | Construct a SymbolID from a null‐terminated string. | link:#clang-mrdocs-SymbolID-begin[`begin`] | Return an iterator to the first byte of the SymbolID. | link:#clang-mrdocs-SymbolID-data[`data`] | Return the raw data for this SymbolID. | link:#clang-mrdocs-SymbolID-end[`end`] | Return an iterator to one past the last byte of the SymbolID. | link:#clang-mrdocs-SymbolID-size[`size`] | Return the size of the SymbolID. | link:#clang-mrdocs-SymbolID-2conversion-07[`operator std::string_view`] | Return a string view of the SymbolID. | link:#clang-mrdocs-SymbolID-2conversion-01[`operator bool`] | Return true if this is a valid SymbolID. | link:#clang-mrdocs-SymbolID-operator_eq[`operator==`] | Compare two SymbolIDs for equality. | link:#clang-mrdocs-SymbolID-operator_3way[`operator<=>`] | Compare two SymbolIDs with strong ordering. |=== == Static Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-SymbolID-createFromString[`createFromString`] | Construct a SymbolID by hashing a string |=== == Static Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-SymbolID-global[`global`] | Symbol ID of the global namespace. | link:#clang-mrdocs-SymbolID-invalid[`invalid`] | |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-getParents-0e[`getParents`] | Return a list of the parent symbols of the specified Info. | link:#clang-mrdocs-toBase16Str[`toBase16Str`] | Convert a SymbolID to a string |=== == Description This is calculated as the SHA1 digest of the USR. A USRs is a string that provides an unambiguous reference to a symbol. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using value_type = uint8_t; ---- Construct a SymbolID from a null‐terminated string. == Synopses Declared in `<mrdocs/Metadata/SymbolID.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-SymbolID-2constructor-00[SymbolID]() = default; ---- [.small]#link:#clang-mrdocs-SymbolID-2constructor-00[_» more..._]# Construct a SymbolID from a null‐terminated string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<value_type> Char> constexpr link:#clang-mrdocs-SymbolID-2constructor-06[SymbolID](Char const* src); ---- [.small]#link:#clang-mrdocs-SymbolID-2constructor-06[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *src* | The string to construct from. |=== Default constructor == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr SymbolID() = default; ---- Construct a SymbolID from a null‐terminated string. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<value_type> Char> constexpr SymbolID(Char const* src); ---- == Description This function constructs a SymbolID from a string. The string must be exactly 20 characters long. == Parameters [cols=2] |=== | Name | Description | *src* | The string to construct from. |=== Return an iterator to the first byte of the SymbolID. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto begin() const noexcept; ---- == Return Value an iterator to the first byte of the SymbolID. Return the raw data for this SymbolID. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto data() const noexcept; ---- == Return Value the raw data for this SymbolID. Return an iterator to one past the last byte of the SymbolID. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto end() const noexcept; ---- == Return Value an iterator to one past the last byte of the SymbolID. Return the size of the SymbolID. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::size_t size() const noexcept; ---- == Description The size of a SymbolID is always 20. == Return Value the size of the SymbolID. Return a string view of the SymbolID. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- operator std::string_view() const noexcept; ---- == Return Value a string view of the SymbolID. Return true if this is a valid SymbolID. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit operator bool() const noexcept; ---- == Return Value true if this is a valid SymbolID. Compare two SymbolIDs for equality. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==(link:#clang-mrdocs-SymbolID[SymbolID] const& other) const noexcept = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Compare two SymbolIDs with strong ordering. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-SymbolID[SymbolID] const& other) const noexcept; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Construct a SymbolID by hashing a string == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static link:#clang-mrdocs-SymbolID[SymbolID] createFromString(std::string_view input); ---- == Return Value The SymbolID created by hashing the string. == Parameters [cols=2] |=== | Name | Description | *input* | The string to hash. |=== Symbol ID of the global namespace. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static link:#clang-mrdocs-SymbolID[SymbolID] global = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"; ---- == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static link:#clang-mrdocs-SymbolID[SymbolID] invalid = SymbolID(); ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TArg; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TArg-2destructor[`~TArg`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-TArg-isNonType[`isNonType`] | | link:#clang-mrdocs-TArg-isTemplate[`isTemplate`] | | link:#clang-mrdocs-TArg-isType[`isType`] | | link:#clang-mrdocs-TArg-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TArg-IsPackExpansion[`IsPackExpansion`] | Whether this template argument is a parameter expansion. | link:#clang-mrdocs-TArg-Kind[`Kind`] | The kind of template argument this is. |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TArg-2constructor[`TArg`] [.small]#[constructor]# | Construct from `TArgKind` |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-IsTArg-01[`IsTArg`] | |=== Destructor == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr virtual ~TArg() = default; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isNonType() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isTemplate() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isType() const noexcept; ---- Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TArg[TArg] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Whether this template argument is a parameter expansion. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsPackExpansion = false; ---- The kind of template argument this is. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-TArgKind[TArgKind] Kind; ---- Construct from `TArgKind` == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr TArg(link:#clang-mrdocs-TArgKind[TArgKind] kind) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *kind* | The object to construct from |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TParam; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TParam-2destructor[`~TParam`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-TParam-isNonType[`isNonType`] | | link:#clang-mrdocs-TParam-isTemplate[`isTemplate`] | | link:#clang-mrdocs-TParam-isType[`isType`] | | link:#clang-mrdocs-TParam-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TParam-Default[`Default`] | The default template argument, if any | link:#clang-mrdocs-TParam-IsParameterPack[`IsParameterPack`] | Whether this template parameter is a parameter pack | link:#clang-mrdocs-TParam-Kind[`Kind`] | The kind of template parameter this is | link:#clang-mrdocs-TParam-Name[`Name`] | The template parameters name, if any |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TParam-2constructor[`TParam`] [.small]#[constructor]# | Construct from `TParamKind` |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-TParamCommonBase-00[`TParamCommonBase`] | |=== Destructor == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr virtual ~TParam() = default; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isNonType() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isTemplate() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isType() const noexcept; ---- Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-TParam[TParam] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== The default template argument, if any == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TArg>] Default = std::nullopt; ---- Whether this template parameter is a parameter pack == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsParameterPack = false; ---- The kind of template parameter this is == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-TParamKind[TParamKind] Kind; ---- The template parameters name, if any == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string Name; ---- Construct from `TParamKind` == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr TParam(link:#clang-mrdocs-TParamKind[TParamKind] kind) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *kind* | The object to construct from |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-TParamKind[TParamKind] K> struct TParamCommonBase : link:#clang-mrdocs-TParam[TParam] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TParam[TParam]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TParam-isNonType[`isNonType`] | | link:#clang-mrdocs-TParam-isTemplate[`isTemplate`] | | link:#clang-mrdocs-TParam-isType[`isType`] | | link:#clang-mrdocs-TParamCommonBase-00-operator_3way-02[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-TParamCommonBase-00-isNonType[`isNonType`] | link:#clang-mrdocs-TParamCommonBase-00-isTemplate[`isTemplate`] | link:#clang-mrdocs-TParamCommonBase-00-isType[`isType`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TParam-Default[`Default`] | The default template argument, if any | link:#clang-mrdocs-TParam-IsParameterPack[`IsParameterPack`] | Whether this template parameter is a parameter pack | link:#clang-mrdocs-TParam-Kind[`Kind`] | The kind of template parameter this is | link:#clang-mrdocs-TParam-Name[`Name`] | The template parameters name, if any |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-TParamCommonBase-00-kind_id[`kind_id`] |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TParamCommonBase-00-2constructor[`TParamCommonBase`] [.small]#[constructor]# | Default constructor |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-NonTypeTParam[`NonTypeTParam`] | | link:#clang-mrdocs-TemplateTParam[`TemplateTParam`] | | link:#clang-mrdocs-TypeTParam[`TypeTParam`] | |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Template.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-TParamCommonBase-00-operator_3way-05[operator<=>](link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-TParamCommonBase-00-operator_3way-05[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-TParam-operator_3way[operator<=>](link:#clang-mrdocs-TParam[TParam] const& rhs) const; ---- [.small]#link:#clang-mrdocs-TParam-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-TParam[TParam] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNonType() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTemplate() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isType() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static link:#clang-mrdocs-TParamKind[TParamKind] kind_id = K; ---- Default constructor == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr TParamCommonBase() noexcept; ---- A subset of possible work in a thread pool. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class TaskGroup; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TaskGroup-2constructor[`TaskGroup`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-TaskGroup-2destructor[`~TaskGroup`] [.small]#[destructor]# | Destructor. | link:#clang-mrdocs-TaskGroup-async[`async`] | Submit work to be executed. | link:#clang-mrdocs-TaskGroup-wait[`wait`] | Block until all work has completed. |=== Constructor. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit TaskGroup(link:#clang-mrdocs-ThreadPool[ThreadPool]& threadPool); ---- == Parameters [cols=2] |=== | Name | Description | *threadPool* | The object to copy construct from |=== Destructor. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~TaskGroup(); ---- Submit work to be executed. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> void async(F&& f); ---- == Description The signature of the submitted function object should be `void(void)`. == Parameters [cols=2] |=== | Name | Description | *f* | The function object to execute. |=== Block until all work has completed. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::vector<Error> wait(); ---- == Return Value Zero or more errors which were thrown from submitted work. Information pertaining to templates and specializations thereof. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TemplateInfo; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TemplateInfo-specializationKind[`specializationKind`] | | link:#clang-mrdocs-TemplateInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TemplateInfo-Args[`Args`] | | link:#clang-mrdocs-TemplateInfo-Params[`Params`] | | link:#clang-mrdocs-TemplateInfo-Primary[`Primary`] | Primary template ID for partial and explicit specializations. | link:#clang-mrdocs-TemplateInfo-Requires[`Requires`] | The requires‐clause for the template parameter list, if any. |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-TemplateSpecKind[TemplateSpecKind] specializationKind() const noexcept; ---- Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-TemplateInfo[TemplateInfo] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Polymorphic<TArg>> Args; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Polymorphic<TParam>> Params; ---- Primary template ID for partial and explicit specializations. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-SymbolID[SymbolID] Primary = = SymbolID::invalid; ---- The requires‐clause for the template parameter list, if any. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ExprInfo[ExprInfo] Requires; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TemplateTArg final : link:#clang-mrdocs-IsTArg-01[IsTArg<TArgKind::Template>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-IsTArg-01[IsTArg<TArgKind::Template>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TemplateTArg-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-TemplateTArg-isNonType[`isNonType`] | link:#clang-mrdocs-TemplateTArg-isTemplate[`isTemplate`] | link:#clang-mrdocs-TemplateTArg-isType[`isType`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TemplateTArg-Name[`Name`] | Name of the referenced template. | link:#clang-mrdocs-TemplateTArg-Template[`Template`] | SymbolID of the referenced template. |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-TemplateTArg-kind_id[`kind_id`] |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-TemplateTArg[TemplateTArg] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNonType() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTemplate() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isType() noexcept; ---- Name of the referenced template. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string Name; ---- SymbolID of the referenced template. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-SymbolID[SymbolID] Template; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TArgKind[TArgKind] kind_id; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TemplateTParam final : link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<TParamKind::Template>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<TParamKind::Template>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TemplateTParam-operator_3way-04[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-TemplateTParam-isNonType[`isNonType`] | link:#clang-mrdocs-TemplateTParam-isTemplate[`isTemplate`] | link:#clang-mrdocs-TemplateTParam-isType[`isType`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TemplateTParam-Params[`Params`] | Template parameters for the template‐template parameter |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-TemplateTParam-kind_id[`kind_id`] |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Template.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-TemplateTParam-operator_3way-01[operator<=>](link:#clang-mrdocs-TemplateTParam[TemplateTParam] const& other) const; ---- [.small]#link:#clang-mrdocs-TemplateTParam-operator_3way-01[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-TemplateTParam-operator_3way-0b[operator<=>](link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<clang::mrdocs::TParamKind::Template>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-TemplateTParam-operator_3way-0b[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-TemplateTParam[TemplateTParam] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<clang::mrdocs::TParamKind::Template>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNonType() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTemplate() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isType() noexcept; ---- Template parameters for the template‐template parameter == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<Polymorphic<TParam>> Params; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TParamKind[TParamKind] kind_id; ---- A pool of threads for executing work concurrently. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ThreadPool; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-ThreadPool-arg_ty-05[`arg_ty`] | link:#clang-mrdocs-ThreadPool-arg_ty-0b[`arg_ty<T&>`] | link:#clang-mrdocs-ThreadPool-arg_t[`arg_t`] |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-ThreadPool-2constructor-08[`ThreadPool`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-ThreadPool-2destructor[`~ThreadPool`] [.small]#[destructor]# | Destructor. | link:#clang-mrdocs-ThreadPool-async[`async`] | Submit work to be executed. | link:#clang-mrdocs-ThreadPool-forEach[`forEach`] | Invoke a function object for each element of a range. | link:#clang-mrdocs-ThreadPool-getThreadCount[`getThreadCount`] | Return the number of threads in the pool. | link:#clang-mrdocs-ThreadPool-wait[`wait`] | Block until all work has completed. |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TaskGroup[clang::mrdocs::TaskGroup]` | A subset of possible work in a thread pool. |=== == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> using arg_t = arg_ty<T>::type; ---- == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> struct arg_ty; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-ThreadPool-arg_ty-05-type[`type`] |=== == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using type = T; ---- == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> struct link:#clang-mrdocs-ThreadPool-arg_ty-05[arg_ty]<T&>; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-ThreadPool-arg_ty-0b-type[`type`] |=== == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using type = std::conditional_t<std::is_const_v<T>, T, T&>; ---- Constructor. == Synopses Declared in `<mrdocs/Support/ThreadPool.hpp>` Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-ThreadPool-2constructor-03[ThreadPool](); ---- [.small]#link:#clang-mrdocs-ThreadPool-2constructor-03[_» more..._]# Constructor. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit link:#clang-mrdocs-ThreadPool-2constructor-04[ThreadPool](unsigned int concurrency); ---- [.small]#link:#clang-mrdocs-ThreadPool-2constructor-04[_» more..._]# Constructor. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit ThreadPool(); ---- == Description Default constructed thread pools have concurrency equal to one and never spawn new threads. Submitted work blocks the caller until the work is complete. Constructor. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit ThreadPool(unsigned int concurrency); ---- == Parameters [cols=2] |=== | Name | Description | *concurrency* | The value to construct from |=== Destructor. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~ThreadPool(); ---- Submit work to be executed. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> void async(F&& f); ---- == Description The signature of the submitted function object should be `void(void)`. == Parameters [cols=2] |=== | Name | Description | *f* | The function object to execute. |=== Invoke a function object for each element of a range. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class Range, class F> [[nodiscard]] std::vector<Error> forEach( Range&& range, F const& f); ---- == Return Value Zero or more errors which were thrown from submitted work. == Parameters [cols=2] |=== | Name | Description | *range* | The range of elements to process. | *f* | The function object to invoke. |=== Return the number of threads in the pool. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- unsigned int getThreadCount() const noexcept; ---- == Return Value the number of threads in the pool. Block until all work has completed. == Synopsis Declared in `<mrdocs/Support/ThreadPool.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void wait(); ---- A possibly qualified type. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TypeInfo; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypeInfo-2destructor[`~TypeInfo`] [.small]#[destructor]# [.small]#[virtual]# | Destructor | link:#clang-mrdocs-TypeInfo-isArray[`isArray`] | | link:#clang-mrdocs-TypeInfo-isAuto[`isAuto`] | | link:#clang-mrdocs-TypeInfo-isDecltype[`isDecltype`] | | link:#clang-mrdocs-TypeInfo-isFunction[`isFunction`] | | link:#clang-mrdocs-TypeInfo-isLValueReference[`isLValueReference`] | | link:#clang-mrdocs-TypeInfo-isMemberPointer[`isMemberPointer`] | | link:#clang-mrdocs-TypeInfo-isNamed[`isNamed`] | | link:#clang-mrdocs-TypeInfo-isPointer[`isPointer`] | | link:#clang-mrdocs-TypeInfo-isRValueReference[`isRValueReference`] | | link:#clang-mrdocs-TypeInfo-namedSymbol[`namedSymbol`] | Return the symbol named by this type. | link:#clang-mrdocs-TypeInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypeInfo-Constraints[`Constraints`] | The constraints associated with the type | link:#clang-mrdocs-TypeInfo-IsConst[`IsConst`] | The const qualifier | link:#clang-mrdocs-TypeInfo-IsPackExpansion[`IsPackExpansion`] | Whether this is the pattern of a pack expansion. | link:#clang-mrdocs-TypeInfo-IsVolatile[`IsVolatile`] | The volatile qualifier | link:#clang-mrdocs-TypeInfo-Kind[`Kind`] | The kind of TypeInfo this is |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypeInfo-2constructor[`TypeInfo`] [.small]#[constructor]# | Construct from `TypeKind` |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-innerType-0f5[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerType-0f7[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0c[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0d[`innerTypePtr`] | Return the inner type. |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypeInfoCommonBase-0a[`TypeInfoCommonBase`] | |=== == Description This class represents a type that may have qualifiers (e.g. const, volatile). This base class is used to store the kind of type. Derived classes are used to store the type information according to the kind. Destructor == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr virtual ~TypeInfo() = default; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isArray() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isAuto() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isDecltype() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isFunction() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isLValueReference() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isMemberPointer() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isNamed() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isPointer() const noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isRValueReference() const noexcept; ---- Return the symbol named by this type. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-SymbolID[SymbolID] namedSymbol() const noexcept; ---- == Return Value the symbol named by this type. Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TypeInfo[TypeInfo] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== The constraints associated with the type == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<ExprInfo> Constraints; ---- == Description This represents the constraints associated with the type, such as SFINAE constraints. For instance, if SFINAE detection is enabled, the expression `std::enable_if_t<std::is_integral_v<T>, T>` will have type `T` (NamedType) and constraints `{std::is_integral_v<T>}`. The const qualifier == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsConst = false; ---- Whether this is the pattern of a pack expansion. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsPackExpansion = false; ---- The volatile qualifier == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsVolatile = false; ---- The kind of TypeInfo this is == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-TypeKind[TypeKind] Kind; ---- Construct from `TypeKind` == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr TypeInfo(link:#clang-mrdocs-TypeKind[TypeKind] kind) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *kind* | The object to construct from |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-TypeKind[TypeKind] K> struct TypeInfoCommonBase : link:#clang-mrdocs-TypeInfo[TypeInfo] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TypeInfo[TypeInfo]` | A possibly qualified type. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypeInfo-isArray[`isArray`] | | link:#clang-mrdocs-TypeInfo-isAuto[`isAuto`] | | link:#clang-mrdocs-TypeInfo-isDecltype[`isDecltype`] | | link:#clang-mrdocs-TypeInfo-isFunction[`isFunction`] | | link:#clang-mrdocs-TypeInfo-isLValueReference[`isLValueReference`] | | link:#clang-mrdocs-TypeInfo-isMemberPointer[`isMemberPointer`] | | link:#clang-mrdocs-TypeInfo-isNamed[`isNamed`] | | link:#clang-mrdocs-TypeInfo-isPointer[`isPointer`] | | link:#clang-mrdocs-TypeInfo-isRValueReference[`isRValueReference`] | | link:#clang-mrdocs-TypeInfo-namedSymbol[`namedSymbol`] | Return the symbol named by this type. | link:#clang-mrdocs-TypeInfoCommonBase-0a-operator_3way-05[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-TypeInfoCommonBase-0a-isArray[`isArray`] | link:#clang-mrdocs-TypeInfoCommonBase-0a-isAuto[`isAuto`] | link:#clang-mrdocs-TypeInfoCommonBase-0a-isDecltype[`isDecltype`] | link:#clang-mrdocs-TypeInfoCommonBase-0a-isFunction[`isFunction`] | link:#clang-mrdocs-TypeInfoCommonBase-0a-isLValueReference[`isLValueReference`] | link:#clang-mrdocs-TypeInfoCommonBase-0a-isMemberPointer[`isMemberPointer`] | link:#clang-mrdocs-TypeInfoCommonBase-0a-isNamed[`isNamed`] | link:#clang-mrdocs-TypeInfoCommonBase-0a-isPointer[`isPointer`] | link:#clang-mrdocs-TypeInfoCommonBase-0a-isRValueReference[`isRValueReference`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypeInfo-Constraints[`Constraints`] | The constraints associated with the type | link:#clang-mrdocs-TypeInfo-IsConst[`IsConst`] | The const qualifier | link:#clang-mrdocs-TypeInfo-IsPackExpansion[`IsPackExpansion`] | Whether this is the pattern of a pack expansion. | link:#clang-mrdocs-TypeInfo-IsVolatile[`IsVolatile`] | The volatile qualifier | link:#clang-mrdocs-TypeInfo-Kind[`Kind`] | The kind of TypeInfo this is |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-TypeInfoCommonBase-0a-kind_id[`kind_id`] |=== == Protected Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypeInfoCommonBase-0a-2constructor[`TypeInfoCommonBase`] [.small]#[constructor]# | Default constructor |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-innerType-0f5[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerType-0f7[`innerType`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0c[`innerTypePtr`] | Return the inner type. | link:#clang-mrdocs-innerTypePtr-0d[`innerTypePtr`] | Return the inner type. |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-ArrayTypeInfo[`ArrayTypeInfo`] | | link:#clang-mrdocs-AutoTypeInfo[`AutoTypeInfo`] | | link:#clang-mrdocs-DecltypeTypeInfo[`DecltypeTypeInfo`] | | link:#clang-mrdocs-FunctionTypeInfo[`FunctionTypeInfo`] | | link:#clang-mrdocs-LValueReferenceTypeInfo[`LValueReferenceTypeInfo`] | | link:#clang-mrdocs-MemberPointerTypeInfo[`MemberPointerTypeInfo`] | | link:#clang-mrdocs-NamedTypeInfo[`NamedTypeInfo`] | | link:#clang-mrdocs-PointerTypeInfo[`PointerTypeInfo`] | | link:#clang-mrdocs-RValueReferenceTypeInfo[`RValueReferenceTypeInfo`] | |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-TypeInfoCommonBase-0a-operator_3way-06[operator<=>](link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-TypeInfoCommonBase-0a-operator_3way-06[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto link:#clang-mrdocs-TypeInfo-operator_3way[operator<=>](link:#clang-mrdocs-TypeInfo[TypeInfo] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-TypeInfo-operator_3way[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-TypeInfoCommonBase-0a[TypeInfoCommonBase] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr auto operator<=>(link:#clang-mrdocs-TypeInfo[TypeInfo] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isArray() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isAuto() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isDecltype() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isLValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isMemberPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamed() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isPointer() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRValueReference() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr static link:#clang-mrdocs-TypeKind[TypeKind] kind_id = K; ---- Default constructor == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr TypeInfoCommonBase() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TypeTArg final : link:#clang-mrdocs-IsTArg-01[IsTArg<TArgKind::Type>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-IsTArg-01[IsTArg<TArgKind::Type>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypeTArg-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-TypeTArg-isNonType[`isNonType`] | link:#clang-mrdocs-TypeTArg-isTemplate[`isTemplate`] | link:#clang-mrdocs-TypeTArg-isType[`isType`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypeTArg-Type[`Type`] | Template argument type. |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-TypeTArg-kind_id[`kind_id`] |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-TypeTArg[TypeTArg] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNonType() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTemplate() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isType() noexcept; ---- Template argument type. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] Type = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TArgKind[TArgKind] kind_id; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TypeTParam final : link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<TParamKind::Type>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<TParamKind::Type>]` | |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypeTParam-operator_3way-05[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-TypeTParam-isNonType[`isNonType`] | link:#clang-mrdocs-TypeTParam-isTemplate[`isTemplate`] | link:#clang-mrdocs-TypeTParam-isType[`isType`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypeTParam-Constraint[`Constraint`] | The type‐constraint for the parameter, if any. | link:#clang-mrdocs-TypeTParam-KeyKind[`KeyKind`] | Keyword (class/typename) the parameter uses |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-TypeTParam-kind_id[`kind_id`] |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Template.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-TypeTParam-operator_3way-02[operator<=>](link:#clang-mrdocs-TypeTParam[TypeTParam] const& rhs) const; ---- [.small]#link:#clang-mrdocs-TypeTParam-operator_3way-02[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-TypeTParam-operator_3way-07[operator<=>](link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<clang::mrdocs::TParamKind::Type>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-TypeTParam-operator_3way-07[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-TypeTParam[TypeTParam] const& rhs) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-TParamCommonBase-00[TParamCommonBase<clang::mrdocs::TParamKind::Type>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNonType() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTemplate() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isType() noexcept; ---- The type‐constraint for the parameter, if any. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] Constraint = std::nullopt; ---- Keyword (class/typename) the parameter uses == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-TParamKeyKind[TParamKeyKind] KeyKind = TParamKeyKind::Class; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-TParamKind[TParamKind] kind_id; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Typedef.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TypedefInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Typedef>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Typedef>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypedefInfo-2constructor[`TypedefInfo`] [.small]#[constructor]# | Construct from `SymbolID` | link:#clang-mrdocs-TypedefInfo-operator_3way-08b[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-TypedefInfo-isConcept[`isConcept`] | link:#clang-mrdocs-TypedefInfo-isEnum[`isEnum`] | link:#clang-mrdocs-TypedefInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-TypedefInfo-isFunction[`isFunction`] | link:#clang-mrdocs-TypedefInfo-isGuide[`isGuide`] | link:#clang-mrdocs-TypedefInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-TypedefInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-TypedefInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-TypedefInfo-isRecord[`isRecord`] | link:#clang-mrdocs-TypedefInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-TypedefInfo-isUsing[`isUsing`] | link:#clang-mrdocs-TypedefInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-TypedefInfo-IsUsing[`IsUsing`] | Indicates if this is a new C++ "using"‐style typedef | link:#clang-mrdocs-TypedefInfo-Template[`Template`] | | link:#clang-mrdocs-TypedefInfo-Type[`Type`] | |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-TypedefInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/Typedef.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit TypedefInfo(link:#clang-mrdocs-SymbolID[SymbolID] ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to construct from |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Info/Typedef.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-TypedefInfo-operator_3way-084[operator<=>](link:#clang-mrdocs-TypedefInfo[TypedefInfo] const& other) const; ---- [.small]#link:#clang-mrdocs-TypedefInfo-operator_3way-084[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-TypedefInfo-operator_3way-08d[operator<=>](link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Typedef>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-TypedefInfo-operator_3way-08d[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info/Typedef.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-TypedefInfo[TypedefInfo] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Typedef>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- Indicates if this is a new C++ "using"‐style typedef == Synopsis Declared in `<mrdocs/Metadata/Info/Typedef.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsUsing = false; ---- == Description [,cpp] ---- using MyVector = std::vector ---- False means it's a C‐style typedef: [,cpp] ---- typedef std::vector MyVector; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Typedef.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<TemplateInfo> Template; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Typedef.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] Type = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class E> class Unexpected; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Unexpected-02-2constructor-06[`Unexpected`] [.small]#[constructor]# | Constructors | link:#clang-mrdocs-Unexpected-02-operator_assign-0e[`operator=`] | Assignment operators | link:#clang-mrdocs-Unexpected-02-error-049[`error`] | | link:#clang-mrdocs-Unexpected-02-swap[`swap`] | |=== == Friends [cols=2] |=== | Name | Description | `link:#clang-mrdocs-swap-07[clang::mrdocs::swap]` | | `link:#clang-mrdocs-operator_eq-04d[clang::mrdocs::operator==]` | Equality operator |=== Constructors == Synopses Declared in `<mrdocs/Support/Expected.hpp>` Copy constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Unexpected-02-2constructor-03[Unexpected](link:#clang-mrdocs-Unexpected-02[Unexpected] const& other) = default; ---- [.small]#link:#clang-mrdocs-Unexpected-02-2constructor-03[_» more..._]# Move constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Unexpected-02-2constructor-097[Unexpected](link:#clang-mrdocs-Unexpected-02[Unexpected]&& other) = default; ---- [.small]#link:#clang-mrdocs-Unexpected-02-2constructor-097[_» more..._]# Construct from `Er` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Er = E> requires (!std::is_same_v<std::remove_cvref_t<Er>, Unexpected>) && (!std::is_same_v<std::remove_cvref_t<Er>, std::in_place_t>) && std::is_constructible_v<E, Er> constexpr explicit link:#clang-mrdocs-Unexpected-02-2constructor-0d[Unexpected](Er&& e) noexcept(std::is_nothrow_constructible_v<E, Er>); ---- [.small]#link:#clang-mrdocs-Unexpected-02-2constructor-0d[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> requires std::is_constructible_v<E, Args...> constexpr explicit link:#clang-mrdocs-Unexpected-02-2constructor-00[Unexpected]( std::in_place_t, Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, Args...>); ---- [.small]#link:#clang-mrdocs-Unexpected-02-2constructor-00[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Args> requires std::is_constructible_v<E, std::initializer_list<U>&, Args...> constexpr explicit link:#clang-mrdocs-Unexpected-02-2constructor-093[Unexpected]( std::in_place_t, std::initializer_list<U> il, Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, std::initializer_list<U> &, Args...>); ---- [.small]#link:#clang-mrdocs-Unexpected-02-2constructor-093[_» more..._]# Copy constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Unexpected(link:#clang-mrdocs-Unexpected-02[Unexpected] const& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy construct from |=== Move constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr Unexpected(link:#clang-mrdocs-Unexpected-02[Unexpected]&& other) = default; ---- == Parameters [cols=2] |=== | Name | Description | *other* | The object to move construct from |=== Construct from `Er` == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Er = E> requires (!std::is_same_v<std::remove_cvref_t<Er>, Unexpected>) && (!std::is_same_v<std::remove_cvref_t<Er>, std::in_place_t>) && std::is_constructible_v<E, Er> constexpr explicit Unexpected(Er&& e) noexcept(std::is_nothrow_constructible_v<E, Er>); ---- == Parameters [cols=2] |=== | Name | Description | *e* | The object to move construct from |=== == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> requires std::is_constructible_v<E, Args...> constexpr explicit Unexpected( std::in_place_t, Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, Args...>); ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Args> requires std::is_constructible_v<E, std::initializer_list<U>&, Args...> constexpr explicit Unexpected( std::in_place_t, std::initializer_list<U> il, Args...&&... args) noexcept(std::is_nothrow_constructible_v<E, std::initializer_list<U> &, Args...>); ---- Assignment operators == Synopses Declared in `<mrdocs/Support/Expected.hpp>` Copy assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Unexpected-02[Unexpected]& link:#clang-mrdocs-Unexpected-02-operator_assign-0b[operator=](link:#clang-mrdocs-Unexpected-02[Unexpected] const& other) = default; ---- [.small]#link:#clang-mrdocs-Unexpected-02-operator_assign-0b[_» more..._]# Move assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Unexpected-02[Unexpected]& link:#clang-mrdocs-Unexpected-02-operator_assign-03[operator=](link:#clang-mrdocs-Unexpected-02[Unexpected]&& other) = default; ---- [.small]#link:#clang-mrdocs-Unexpected-02-operator_assign-03[_» more..._]# Copy assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Unexpected-02[Unexpected]& operator=(link:#clang-mrdocs-Unexpected-02[Unexpected] const& other) = default; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to copy assign from |=== Move assignment operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-Unexpected-02[Unexpected]& operator=(link:#clang-mrdocs-Unexpected-02[Unexpected]&& other) = default; ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *other* | The object to move assign from |=== == Synopses Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr E const& link:#clang-mrdocs-Unexpected-02-error-05[error]() const & noexcept; ---- [.small]#link:#clang-mrdocs-Unexpected-02-error-05[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr E& link:#clang-mrdocs-Unexpected-02-error-02[error]() & noexcept; ---- [.small]#link:#clang-mrdocs-Unexpected-02-error-02[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr E const&& link:#clang-mrdocs-Unexpected-02-error-048[error]() const && noexcept; ---- [.small]#link:#clang-mrdocs-Unexpected-02-error-048[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr E&& link:#clang-mrdocs-Unexpected-02-error-0f[error]() && noexcept; ---- [.small]#link:#clang-mrdocs-Unexpected-02-error-0f[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr E const& error() const & noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr E& error() & noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr E const&& error() const && noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr E&& error() && noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void swap(link:#clang-mrdocs-Unexpected-02[Unexpected]& other) noexcept(std::is_nothrow_swappable_v<E>) requires std::is_swappable_v<E>; ---- Info for using declarations. == Synopsis Declared in `<mrdocs/Metadata/Info/Using.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct UsingInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Using>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Using>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-UsingInfo-2constructor[`UsingInfo`] [.small]#[constructor]# | Construct from `SymbolID` | link:#clang-mrdocs-UsingInfo-operator_3way[`operator<=>`] | Three‐way comparison operator |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-UsingInfo-isConcept[`isConcept`] | link:#clang-mrdocs-UsingInfo-isEnum[`isEnum`] | link:#clang-mrdocs-UsingInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-UsingInfo-isFunction[`isFunction`] | link:#clang-mrdocs-UsingInfo-isGuide[`isGuide`] | link:#clang-mrdocs-UsingInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-UsingInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-UsingInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-UsingInfo-isRecord[`isRecord`] | link:#clang-mrdocs-UsingInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-UsingInfo-isUsing[`isUsing`] | link:#clang-mrdocs-UsingInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-UsingInfo-Class[`Class`] | The using declaration. | link:#clang-mrdocs-UsingInfo-IntroducedName[`IntroducedName`] | The symbol being introduced. | link:#clang-mrdocs-UsingInfo-ShadowDeclarations[`ShadowDeclarations`] | The shadow declarations. |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-UsingInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== == Description For instance, the following code: [,cpp] ---- using A::f; // where f is a function in namespace A ---- would be represented by a `UsingInfo` object. Using‐declarations can be used to introduce namespace members into other namespaces and block scopes, or to introduce base class members into derived class definitions, or to introduce enumerators into namespaces, block, and class scopes. Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/Using.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit UsingInfo(link:#clang-mrdocs-SymbolID[SymbolID] ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to construct from |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Using>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- The using declaration. == Synopsis Declared in `<mrdocs/Metadata/Info/Using.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-UsingClass[UsingClass] Class = UsingClass::Normal; ---- The symbol being introduced. == Synopsis Declared in `<mrdocs/Metadata/Info/Using.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] IntroducedName; ---- == Description This is the symbol that is being "used" or introduced into the current scope. Note that this can be a qualified name, such as `A::f` in the example above. The shadow declarations. == Synopsis Declared in `<mrdocs/Metadata/Info/Using.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> ShadowDeclarations; ---- == Description A using declaration can refer to and introduce multiple symbols into the current context. These multiple symbols are considered a special case of declarations: "shadow declarations". This typically happens when there are conflicting symbol names in the scope being introduced, such as: Overloaded functions: the base namespace contains overloaded functions. Name conflicts: the base scope contains a function and a type. Enums: a using enum declaration can refer to multiple enumerators. Also note that more shadow declarations can be introduced later in the same scope, after the using declaration. The shadow declarations here are only those that are shadowed at the point where the using declaration is located. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- A variable. == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct VariableInfo final : link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Variable>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<InfoKind::Variable>]` | Base class for providing variant discriminator functions. |=== == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-VariableInfo-2constructor[`VariableInfo`] [.small]#[constructor]# | Construct from `SymbolID` | link:#clang-mrdocs-VariableInfo-operator_3way-07[`operator<=>`] | Three‐way comparison operators |=== == Static Member Functions [cols=1] |=== | Name | link:#clang-mrdocs-VariableInfo-isConcept[`isConcept`] | link:#clang-mrdocs-VariableInfo-isEnum[`isEnum`] | link:#clang-mrdocs-VariableInfo-isEnumConstant[`isEnumConstant`] | link:#clang-mrdocs-VariableInfo-isFunction[`isFunction`] | link:#clang-mrdocs-VariableInfo-isGuide[`isGuide`] | link:#clang-mrdocs-VariableInfo-isNamespace[`isNamespace`] | link:#clang-mrdocs-VariableInfo-isNamespaceAlias[`isNamespaceAlias`] | link:#clang-mrdocs-VariableInfo-isOverloads[`isOverloads`] | link:#clang-mrdocs-VariableInfo-isRecord[`isRecord`] | link:#clang-mrdocs-VariableInfo-isTypedef[`isTypedef`] | link:#clang-mrdocs-VariableInfo-isUsing[`isUsing`] | link:#clang-mrdocs-VariableInfo-isVariable[`isVariable`] |=== == Data Members [cols=2] |=== | Name | Description | link:#clang-mrdocs-VariableInfo-Attributes[`Attributes`] | | link:#clang-mrdocs-VariableInfo-BitfieldWidth[`BitfieldWidth`] | The width of the bitfield | link:#clang-mrdocs-VariableInfo-HasNoUniqueAddress[`HasNoUniqueAddress`] | | link:#clang-mrdocs-VariableInfo-Initializer[`Initializer`] | The default member initializer, if any. | link:#clang-mrdocs-VariableInfo-IsBitfield[`IsBitfield`] | Whether the field is a bitfield | link:#clang-mrdocs-VariableInfo-IsConstexpr[`IsConstexpr`] | | link:#clang-mrdocs-VariableInfo-IsConstinit[`IsConstinit`] | | link:#clang-mrdocs-VariableInfo-IsDeprecated[`IsDeprecated`] | | link:#clang-mrdocs-VariableInfo-IsInline[`IsInline`] | | link:#clang-mrdocs-VariableInfo-IsMaybeUnused[`IsMaybeUnused`] | | link:#clang-mrdocs-VariableInfo-IsMutable[`IsMutable`] | Whether the field is declared mutable | link:#clang-mrdocs-VariableInfo-IsRecordField[`IsRecordField`] | | link:#clang-mrdocs-VariableInfo-IsThreadLocal[`IsThreadLocal`] | | link:#clang-mrdocs-VariableInfo-IsVariant[`IsVariant`] | Whether the field is a variant member | link:#clang-mrdocs-VariableInfo-StorageClass[`StorageClass`] | | link:#clang-mrdocs-VariableInfo-Template[`Template`] | | link:#clang-mrdocs-VariableInfo-Type[`Type`] | The type of the variable |=== == Static Data Members [cols=1] |=== | Name | link:#clang-mrdocs-VariableInfo-kind_id[`kind_id`] |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-merge-06[`merge`] | Merges two Info objects. |=== == Description This includes variables at namespace or record scope. Construct from `SymbolID` == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit VariableInfo(link:#clang-mrdocs-SymbolID[SymbolID] const& ID) noexcept; ---- == Parameters [cols=2] |=== | Name | Description | *ID* | The object to copy construct from |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Info/Variable.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-VariableInfo-operator_3way-01[operator<=>](link:#clang-mrdocs-VariableInfo[VariableInfo] const& other) const; ---- [.small]#link:#clang-mrdocs-VariableInfo-operator_3way-01[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-VariableInfo-operator_3way-02[operator<=>](link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Variable>] const& rhs) const = default; ---- [.small]#link:#clang-mrdocs-VariableInfo-operator_3way-02[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>(link:#clang-mrdocs-VariableInfo[VariableInfo] const& other) const; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *other* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>(link:#clang-mrdocs-InfoCommonBase-08[InfoCommonBase<clang::mrdocs::InfoKind::Variable>] const& rhs) const = default; ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isConcept() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnum() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isEnumConstant() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isFunction() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isGuide() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespace() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isNamespaceAlias() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isOverloads() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isRecord() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isTypedef() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isUsing() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/InfoNodes.inc>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static bool isVariable() noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::string> Attributes; ---- The width of the bitfield == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ConstantExprInfo[ConstantExprInfo<uint64_t>] BitfieldWidth; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool HasNoUniqueAddress = false; ---- The default member initializer, if any. == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-ExprInfo[ExprInfo] Initializer; ---- Whether the field is a bitfield == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsBitfield = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsConstexpr = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsConstinit = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsDeprecated = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsInline = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsMaybeUnused = false; ---- Whether the field is declared mutable == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsMutable = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsRecordField = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsThreadLocal = false; ---- Whether the field is a variant member == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsVariant = false; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-StorageClassKind[StorageClassKind] StorageClass = StorageClassKind::None; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<TemplateInfo> Template; ---- The type of the variable == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] Type = std::nullopt; ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static link:#clang-mrdocs-InfoKind[InfoKind] kind_id; ---- A visitor for a type == Synopsis Declared in `<mrdocs/Support/Visitor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Base, typename Fn, typename... Args> class Visitor; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-Visitor-2constructor[`Visitor`] [.small]#[constructor]# | Constructor | link:#clang-mrdocs-Visitor-visit[`visit`] | Visit a derived type |=== == Description This class is used to implement the visitor pattern. It stores a reference to an object of type `Base`, and a function object `Fn` which is called with the derived type as the first argument, followed by `Args`. The visitor is constructed with the object to visit, the function object, and the arguments to pass to the function object. The method `visit` is a template which accepts a derived type of `Base`. It calls the function object with the derived type as the first argument, followed by the arguments passed to the constructor. == Template Parameters [cols=2] |=== | Name | Description | *Base* | The base type of the object | *Fn* | The function object type | *Args* | The argument types |=== Constructor == Synopsis Declared in `<mrdocs/Support/Visitor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Visitor( Base&& obj, Fn&& fn, Args...&&... args); ---- == Parameters [cols=2] |=== | Name | Description | *obj* | The object to visit | *fn* | The function object to call | *args* | The arguments to pass to the function object |=== Visit a derived type == Synopsis Declared in `<mrdocs/Support/Visitor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::derived_from<std::remove_cvref_t<Base>> Derived> decltype(auto) visit(); ---- == Description This method calls the function object with the derived type as the first argument, followed by the arguments passed to the constructor. == Return Value The result of calling the function object == Template Parameters [cols=2] |=== | Name | Description | *Derived* | The derived type to visit |=== == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> struct add_const_from : std::conditional<std::is_const_v<std::remove_reference_t<From>>, add_reference_from_t<To, std::remove_reference_t<To> const>, To> ---- == Base Classes [cols=2] |=== | Name | Description | `std::conditional<std::is_const_v<std::remove_reference_t<From>>, add_reference_from_t<To, std::remove_reference_t<To> const>, To>` | |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-add_cv_from[`add_cv_from`] | |=== == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> struct add_cv_from : link:#clang-mrdocs-add_const_from[add_const_from<From, add_volatile_from_t<From, To>>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-add_const_from[add_const_from<From, add_volatile_from_t<From, To>>]` | |=== == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> struct add_cvref_from : link:#clang-mrdocs-add_reference_from[add_reference_from<From, add_cv_from_t<From, To>>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-add_reference_from[add_reference_from<From, add_cv_from_t<From, To>>]` | |=== == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> struct add_lvalue_reference_from : std::conditional<std::is_lvalue_reference_v<From>, std::add_lvalue_reference_t<To>, To> ---- == Base Classes [cols=2] |=== | Name | Description | `std::conditional<std::is_lvalue_reference_v<From>, std::add_lvalue_reference_t<To>, To>` | |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-add_reference_from[`add_reference_from`] | |=== == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> struct add_reference_from : link:#clang-mrdocs-add_lvalue_reference_from[add_lvalue_reference_from<From, add_rvalue_reference_from_t<From, To>>] ---- == Base Classes [cols=2] |=== | Name | Description | `link:#clang-mrdocs-add_lvalue_reference_from[add_lvalue_reference_from<From, add_rvalue_reference_from_t<From, To>>]` | |=== == Derived Classes [cols=2] |=== | Name | Description | link:#clang-mrdocs-add_cvref_from[`add_cvref_from`] | |=== == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> struct add_rvalue_reference_from : std::conditional<std::is_rvalue_reference_v<From>, std::add_rvalue_reference_t<To>, To> ---- == Base Classes [cols=2] |=== | Name | Description | `std::conditional<std::is_rvalue_reference_v<From>, std::add_rvalue_reference_t<To>, To>` | |=== == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> struct add_volatile_from : std::conditional<std::is_volatile_v<std::remove_reference_t<From>>, add_reference_from_t<To, std::remove_reference_t<To> volatile>, To> ---- == Base Classes [cols=2] |=== | Name | Description | `std::conditional<std::is_volatile_v<std::remove_reference_t<From>>, add_reference_from_t<To, std::remove_reference_t<To> volatile>, To>` | |=== A movable, type‐erased function object. == Synopsis Declared in `<mrdocs/Support/any_callable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class> class any_callable; ---- == Description Usage: [,cpp] ---- any_callable f; ---- == Synopsis Declared in `<mrdocs/Support/any_callable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class R, class... Args> class link:#clang-mrdocs-any_callable-06[any_callable]<R(Args...)>; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-any_callable-07-2constructor-0d[`any_callable`] [.small]#[constructor]# [.small]#[deleted]# | Constructors | link:#clang-mrdocs-any_callable-07-operator_call[`operator()`] | |=== Constructors == Synopses Declared in `<mrdocs/Support/any_callable.hpp>` Default constructor [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-any_callable-07-2constructor-09[any_callable]() = delete; ---- [.small]#link:#clang-mrdocs-any_callable-07-2constructor-09[_» more..._]# Construct from `Callable` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Callable> requires std::is_invocable_r_v<R, Callable, Args...> link:#clang-mrdocs-any_callable-07-2constructor-01[any_callable](Callable&& f); ---- [.small]#link:#clang-mrdocs-any_callable-07-2constructor-01[_» more..._]# Default constructor == Synopsis Declared in `<mrdocs/Support/any_callable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- any_callable() = delete; ---- Construct from `Callable` == Synopsis Declared in `<mrdocs/Support/any_callable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Callable> requires std::is_invocable_r_v<R, Callable, Args...> any_callable(Callable&& f); ---- == Parameters [cols=2] |=== | Name | Description | *f* | The object to move construct from |=== == Synopsis Declared in `<mrdocs/Support/any_callable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- R operator()(Args...&&... args) const; ---- == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U> struct make_dependent; ---- == Types [cols=1] |=== | Name | link:#clang-mrdocs-make_dependent-type[`type`] |=== == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using type = T; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct unexpect_t; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-unexpect_t-2constructor[`unexpect_t`] [.small]#[constructor]# | Default constructor |=== Default constructor == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit unexpect_t() = default; ---- A scoped guard which unlocks a mutex. == Synopsis Declared in `<mrdocs/Support/unlock_guard.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class unlock_guard; ---- == Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-unlock_guard-2constructor[`unlock_guard`] [.small]#[constructor]# | Constructor. | link:#clang-mrdocs-unlock_guard-2destructor[`~unlock_guard`] [.small]#[destructor]# | Destructor. |=== Constructor. == Synopsis Declared in `<mrdocs/Support/unlock_guard.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit unlock_guard(std::mutex& m); ---- == Parameters [cols=2] |=== | Name | Description | *m* | The object to copy construct from |=== Destructor. == Synopsis Declared in `<mrdocs/Support/unlock_guard.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- ~unlock_guard(); ---- Access specifier. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class AccessKind : int; ---- == Members [cols=2] |=== | Name | Description |`None` |Unspecified access |`Public` |Public access |`Protected` |Protected access |`Private` |Private access |=== == Description None is set to zero since it is the most frequently occurring access, and it is elided by the bitstream encoder because it has an all‐zero bit pattern. This improves compression in the bitstream. None is used for namespace members and friend; such declarations have no access. The kind of `auto` keyword used in a declaration. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class AutoKind : int; ---- == Members [cols=2] |=== | Name | Description |`Auto` |The `auto` keyword |`DecltypeAuto` |The `decltype(auto)` keyword |=== == Description This is either `auto` or `decltype(auto)`. `constexpr`/`consteval` specifier kinds == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class ConstexprKind : int; ---- == Members [cols=2] |=== | Name | Description |`None` |No `constexpr` or `consteval` specifier |`Constexpr` |The `constexpr` specifier |`Consteval` |The `consteval` specifier only valid for functions |=== == Description [dcl.spec.general] p2: At most one of the `constexpr`, `consteval`, and `constinit` keywords shall appear in a decl‐specifier‐seq Explicit specifier kinds == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class ExplicitKind : int; ---- == Members [cols=2] |=== | Name | Description |`False` |No explicit‐specifier or explicit‐specifier evaluated to false |`True` |explicit‐specifier evaluates to true |`Dependent` |Dependent explicit‐specifier |=== Determine why a symbol is extracted == Synopsis Declared in `<mrdocs/Metadata/ExtractionMode.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class ExtractionMode : int; ---- == Members [cols=2] |=== | Name | Description |`Regular` |We're extracting the current symbol because it passes all filters. |`SeeBelow` |We're extracting the current symbol because it passes all filters, but we should also tag it as see‐below because it passes one of the see‐below filters. This symbol has its own page but it has no details and no child members. |`ImplementationDefined` |We're extracting the current symbol because it passes all filters, but we should also tag it as implementation‐defined because one of its parents matches the implementation‐defined filter. This symbol has no page and other symbols that depend on it will just render /*implementation‐defined*/. |`Dependency` |We're extracting the current symbol even though it doesn't pass all filters because it's a direct dependency of a symbol that does pass all filters and needs information about it (e.g.: base classes outside the filters). This symbol has no page and it might even deleted from the corpus if no other symbol depends on it after we extracted the information we wanted from it in post‐processing steps. |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-leastSpecific[`leastSpecific`] | Compare ExtractionModes and returns the least specific | link:#clang-mrdocs-mostSpecific[`mostSpecific`] | Compare ExtractionModes and returns the most specific | link:#clang-mrdocs-toString-06[`toString`] | Return the name of the InfoKind as a string. |=== == Description The enum constants are ordered by specificity, with the least specific at the beginning and the most specific at the end. == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class FileKind : int; ---- == Members [cols=2] |=== | Name | Description |`Source` |File in the source directory |`System` |File in a system include directory |`Other` |File outside the source directory |=== Function classifications == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class FunctionClass : int; ---- == Members [cols=2] |=== | Name | Description |`Normal` |The function is a normal function. |`Constructor` |The function is a constructor. |`Conversion` |The function is a conversion operator. |`Destructor` |The function is a destructor. |=== Categorically describes a fundamental type. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class FundamentalTypeKind : int; ---- == Members [cols=2] |=== | Name | Description |`Void` |void |`Nullptr` |std::nullptr_t |`Bool` |bool |`Char` |char |`SignedChar` |signed char |`UnsignedChar` |unsigned char |`Char8` |char8_t |`Char16` |char16_t |`Char32` |char32_t |`WChar` |wchar_t |`Short` |short / short int / signed short / signed short int |`UnsignedShort` |unsigned short / unsigned short int |`Int` |int / signed / signed int |`UnsignedInt` |unsigned / unsigned int |`Long` |long / long int / signed long / signed long int |`UnsignedLong` |unsigned long / unsigned long int |`LongLong` |long long / long long int / signed long long / signed long long int |`UnsignedLongLong` |unsigned long long / unsigned long long int |`Float` |float |`Double` |double |`LongDouble` |long double |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-makeChar[`makeChar`] | Apply the "char" specifier to the type | link:#clang-mrdocs-makeLong[`makeLong`] | Apply the "long" specifier to the type | link:#clang-mrdocs-makeShort[`makeShort`] | Apply the "short" specifier to the type | link:#clang-mrdocs-makeSigned[`makeSigned`] | Apply the "signed" specifier to the type | link:#clang-mrdocs-makeUnsigned[`makeUnsigned`] | Apply the "unsigned" specifier to the type | link:#clang-mrdocs-toString-0b7[`toString`] | Convert a FundamentalTypeKind to a string. |=== == See Also https://en.cppreference.com/w/cpp/language/types Info variant discriminator == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class InfoKind : int; ---- == Members [cols=2] |=== | Name | Description |`None` |Kind is not specified. |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-toString-0b4b[`toString`] | Return the name of the InfoKind as a string. |=== == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class NameKind : int; ---- == Members [cols=2] |=== | Name | Description |`Identifier` |A simple identifier |`Specialization` |A template instantiation |=== Exception specification kinds == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class NoexceptKind : int; ---- == Members [cols=2] |=== | Name | Description |`False` |Potentially‐throwing exception specification |`True` |Non‐throwing exception specification |`Dependent` |Dependent exception specification |=== Operator kinds == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class OperatorKind : int; ---- == Members [cols=2] |=== | Name | Description |`None` |No operator |`New` |The `new` Operator |`Delete` |The `delete` Operator |`ArrayNew` |The `new[]` Operator |`ArrayDelete` |The `delete[]` Operator |`Plus` |The + Operator |`Minus` |The ‐ Operator |`Star` |The Operator |`Slash` |The / Operator |`Percent` |The % Operator |`Caret` |The ˆ Operator |`Amp` |The & Operator |`Pipe` |The | Operator |`Tilde` |The ~ Operator |`Equal` |The ! Operator |`PlusEqual` |The += Operator |`MinusEqual` |The ‐= Operator |`StarEqual` |The = Operator |`SlashEqual` |The /= Operator |`PercentEqual` |The %= Operator |`CaretEqual` |The ˆ= Operator |`AmpEqual` |The &= Operator |`PipeEqual` |The |= Operator |`LessLess` |The << Operator |`GreaterGreater` |The >> Operator |`LessLessEqual` |The <<= Operator |`GreaterGreaterEqual` |The >>= Operator |`Exclaim` |The ! Operator |`EqualEqual` |The == Operator |`ExclaimEqual` |The != Operator |`Less` |The < Operator |`LessEqual` |The <= Operator |`Greater` |The > Operator |`GreaterEqual` |The >= Operator |`Spaceship` |The <=> Operator |`AmpAmp` |The && Operator |`PipePipe` |The || Operator |`PlusPlus` |The ++ Operator |`MinusMinus` |The ‐‐ Operator |`Comma` |The , Operator |`ArrowStar` |The ‐> Operator |`Arrow` |The ‐> Operator |`Call` |The () Operator |`Subscript` |The [] Operator |`Conditional` |The `? :` Operator |`Coawait` |The `coawait` Operator |=== == Non-Member Functions [cols=2] |=== | Name | Description | link:#clang-mrdocs-getOperatorKind[`getOperatorKind`] | Return the short name of an operator as a string. | link:#clang-mrdocs-getOperatorKindFromSuffix[`getOperatorKindFromSuffix`] | Return the short name of an operator as a string. | link:#clang-mrdocs-getOperatorName[`getOperatorName`] | Return the name of an operator as a string. | link:#clang-mrdocs-getOperatorReadableName[`getOperatorReadableName`] | Return the human‐readable name of the operator | link:#clang-mrdocs-getSafeOperatorName[`getSafeOperatorName`] | Return the safe name of an operator as a string. | link:#clang-mrdocs-getShortOperatorName[`getShortOperatorName`] | Return the short name of an operator as a string. | link:#clang-mrdocs-isBinaryOperator[`isBinaryOperator`] | Determines whether the operator is potentially binary. | link:#clang-mrdocs-isUnaryOperator[`isUnaryOperator`] | Determines whether the operator is potentially unary. |=== Type qualifiers == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum QualifierKind; ---- == Members [cols=2] |=== | Name | Description |`None` |No qualifiers |`Const` |The const qualifier |`Volatile` |The volatile qualifier |=== The kind of record: struct, class, or union. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class RecordKeyKind : int; ---- == Members [cols=2] |=== | Name | Description |`Struct` |A struct. |`Class` |A C++ class. |`Union` |A C‐style Union |=== Reference type kinds == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class ReferenceKind : int; ---- == Members [cols=2] |=== | Name | Description |`None` |Not a reference |`LValue` |An L‐Value reference |`RValue` |An R‐Value reference |=== Storage class kinds == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class StorageClassKind : int; ---- == Members [cols=2] |=== | Name | Description |`None` |No storage class specifier |`Extern` |thread_local storage‐class‐specifier |`Static` |mutable storage‐class‐specifier |`Auto` |auto storage‐class‐specifier (removed in C++11) only valid for variables |`Register` |register storage‐class‐specifier (removed in C++17) only valid for variables |=== == Description [dcl.stc] p1: At most one storage‐class‐specifier shall appear in a given decl‐specifier‐seq, except that `thread_local` may appear with `static` or `extern`. The kind of template argument. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class TArgKind : int; ---- == Members [cols=2] |=== | Name | Description |`Type` |type arguments |`NonType` |non‐type arguments, i.e. expressions |`Template` |template template arguments, i.e. template names |=== The keyword a template parameter was declared with == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class TParamKeyKind : int; ---- == Members [cols=2] |=== | Name | Description |`Class` |Class keyword |`Typename` |Typename keyword |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class TParamKind : int; ---- == Members [cols=2] |=== | Name | Description |`Type` |Template type parameter, e.g. "typename T" or "class T" |`NonType` |Template non‐type parameter, e.g. "int N" or "auto N" |`Template` |Template‐template parameter, e.g. "template<typename> typename T" |=== The kind of template or specialization. == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class TemplateSpecKind : int; ---- == Members [cols=2] |=== | Name | Description |`Primary` |Primary template |`Explicit` |Full template specialization |`Partial` |Partial template specialization |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class TypeKind : int; ---- == Members [cols=2] |=== | Name | Description |`Named` |A Named type |`Decltype` |A decltype type |`Auto` |An auto type |`LValueReference` |An LValueReference type |`RValueReference` |An RValueReference type |`Pointer` |A Pointer type |`MemberPointer` |A MemberPointer type |`Array` |An Array type |`Function` |A Function type |=== The class of using declaration. == Synopsis Declared in `<mrdocs/Metadata/Info/Using.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class UsingClass : int; ---- == Members [cols=2] |=== | Name | Description |`Normal` |Using declaration class. |`Typename` |Using typename declaration class. |`Enum` |Using enum declaration class. |=== == Description This indicates whether the using declaration is a normal `using`, a `using typename`, or a `using enum`. Compares two polymorphic objects that have visit functions == Synopses Declared in `<mrdocs/ADT/Polymorphic.hpp>` Compares two polymorphic objects that have visit functions [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Base> requires (!detail::IsPolymorphic<Base>) && detail::CanVisitCompare<Base> auto link:#clang-mrdocs-CompareDerived-0a[CompareDerived]( Base const& lhs, Base const& rhs); ---- [.small]#link:#clang-mrdocs-CompareDerived-0a[_» more..._]# Compares two polymorphic objects that have visit functions [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Base> requires detail::CanVisitCompare<Base> auto link:#clang-mrdocs-CompareDerived-00[CompareDerived]( link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& rhs); ---- [.small]#link:#clang-mrdocs-CompareDerived-00[_» more..._]# == Return Value true if the two Polymorphic objects are equal, otherwise false. == Template Parameters [cols=2] |=== | Name | Description | *Base* | The type of the Polymorphic. |=== == Parameters [cols=2] |=== | Name | Description | *lhs* | The first Polymorphic to compare. | *rhs* | The second Polymorphic to compare. |=== Compares two polymorphic objects that have visit functions == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Base> requires (!detail::IsPolymorphic<Base>) && detail::CanVisitCompare<Base> auto CompareDerived( Base const& lhs, Base const& rhs); ---- == Description This function compares two Polymorphic objects that have visit functions for the Base type. The visit function is used to compare the two objects if they are of the same derived type. If the two objects are of different derived types, the comparison is based on the type_info of the derived types. If any of the objects is empty, the comparison is based on the emptiness of the objects. == Return Value true if the two Polymorphic objects are equal, otherwise false. == Template Parameters [cols=2] |=== | Name | Description | *Base* | The type of the Polymorphic. |=== == Parameters [cols=2] |=== | Name | Description | *lhs* | The first Polymorphic to compare. | *rhs* | The second Polymorphic to compare. |=== Compares two polymorphic objects that have visit functions == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Base> requires detail::CanVisitCompare<Base> auto CompareDerived( link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& rhs); ---- == Description This function compares two Polymorphic objects that have visit functions for the Base type. The visit function is used to compare the two objects if they are of the same derived type. If the two objects are of different derived types, the comparison is based on the type_info of the derived types. If any of the objects is empty, the comparison is based on the emptiness of the objects. == Return Value true if the two Polymorphic objects are equal, otherwise false. == Template Parameters [cols=2] |=== | Name | Description | *Base* | The type of the Polymorphic. |=== == Parameters [cols=2] |=== | Name | Description | *lhs* | The first Polymorphic to compare. | *rhs* | The second Polymorphic to compare. |=== `HTMLEscape` overloads == Synopses Declared in `<mrdocs/Support/Handlebars.hpp>` HTML escapes the specified string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-HTMLEscape-0c[HTMLEscape](std::string_view str); ---- [.small]#link:#clang-mrdocs-HTMLEscape-0c[_» more..._]# HTML escapes the specified string [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-HTMLEscape-01[HTMLEscape]( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view str); ---- [.small]#link:#clang-mrdocs-HTMLEscape-01[_» more..._]# == Return Value The escaped string. == Parameters [cols=2] |=== | Name | Description | *str* | The string to escape. | *out* | The output stream reference where the escaped string will be written. |=== == See Also https://github.com/handlebars‐lang/handlebars.js/blob/master/lib/handlebars/utils.js HTML escapes the specified string. == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string HTMLEscape(std::string_view str); ---- == Description This function HTML escapes the specified string, making it safe for rendering as text within HTML content. Replaces `&`, `<`, `>`, `"`, `'`, `, `= with the HTML entity equivalent value for string values. The output of all expressions except for triple‐braced expressions are passed through this method. Helpers should also use this method when returning HTML content via a SafeString instance, to prevent possible code injection. Helper values created by the SafeString function are left untouched by the template and are not passed through this function. == Return Value The escaped string. == Parameters [cols=2] |=== | Name | Description | *str* | The string to escape. |=== HTML escapes the specified string == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void HTMLEscape( link:#clang-mrdocs-OutputRef[OutputRef]& out, std::string_view str); ---- == Description This function HTML escapes the specified string, making it safe for rendering as text within HTML content. Replaces `&`, `<`, `>`, `"`, `'`, `, `= with the HTML entity equivalent value for string values. The output of all expressions except for triple‐braced expressions are passed through this method. Helpers should also use this method when returning HTML content via a SafeString instance, to prevent possible code injection. Helper values created by the SafeString function are left untouched by the template and are not passed through this function. This function has the same behavior as the corresponding utility function in the Handlebars.js library. == Parameters [cols=2] |=== | Name | Description | *out* | The output stream reference where the escaped string will be written. | *str* | The string to escape. |=== == See Also https://github.com/handlebars‐lang/handlebars.js/blob/master/lib/handlebars/utils.js == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void addMember( link:#clang-mrdocs-OverloadsInfo[OverloadsInfo]& I, link:#clang-mrdocs-FunctionInfo[FunctionInfo] const& Member); ---- == Synopses Declared in `<mrdocs/Metadata/Info/Enum.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto& link:#clang-mrdocs-allMembers-0e[allMembers](link:#clang-mrdocs-EnumInfo[EnumInfo] const& T); ---- [.small]#link:#clang-mrdocs-allMembers-0e[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-allMembers-09[allMembers](link:#clang-mrdocs-NamespaceInfo[NamespaceInfo] const& T); ---- [.small]#link:#clang-mrdocs-allMembers-09[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-allMembers-0c[allMembers](link:#clang-mrdocs-NamespaceTranche[NamespaceTranche] const& T); ---- [.small]#link:#clang-mrdocs-allMembers-0c[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto& link:#clang-mrdocs-allMembers-08[allMembers](link:#clang-mrdocs-OverloadsInfo[OverloadsInfo] const& T); ---- [.small]#link:#clang-mrdocs-allMembers-08[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-allMembers-04[allMembers](link:#clang-mrdocs-RecordInfo[RecordInfo] const& T); ---- [.small]#link:#clang-mrdocs-allMembers-04[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-allMembers-03[allMembers](link:#clang-mrdocs-RecordInterface[RecordInterface] const& T); ---- [.small]#link:#clang-mrdocs-allMembers-03[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-allMembers-07[allMembers](link:#clang-mrdocs-RecordTranche[RecordTranche] const& T); ---- [.small]#link:#clang-mrdocs-allMembers-07[_» more..._]# == Synopsis Declared in `<mrdocs/Metadata/Info/Enum.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto& allMembers(link:#clang-mrdocs-EnumInfo[EnumInfo] const& T); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto allMembers(link:#clang-mrdocs-NamespaceInfo[NamespaceInfo] const& T); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto allMembers(link:#clang-mrdocs-NamespaceTranche[NamespaceTranche] const& T); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto& allMembers(link:#clang-mrdocs-OverloadsInfo[OverloadsInfo] const& T); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto allMembers(link:#clang-mrdocs-RecordInfo[RecordInfo] const& T); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto allMembers(link:#clang-mrdocs-RecordInterface[RecordInterface] const& T); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto allMembers(link:#clang-mrdocs-RecordTranche[RecordTranche] const& T); ---- == Synopsis Declared in `<mrdocs/Support/Assert.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void assert_failed( char const* msg, char const* file, uint_least32_t line); ---- == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool canMerge( link:#clang-mrdocs-Info[Info] const& I, link:#clang-mrdocs-Info[Info] const& Other); ---- Return the result of comparing s0 to s1. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering compareSymbolNames( std::string_view symbolName0, std::string_view symbolName1) noexcept; ---- == Description This function returns true if the string s0 is less than the string s1. The comparison is first made without regard to case, unless the strings compare equal and then they are compared with lowercase letters coming before uppercase letters. == Return Value The result of the comparison. == Parameters [cols=2] |=== | Name | Description | *symbolName0* | The first symbol name to compare. | *symbolName1* | The second symbol name to compare. |=== Determine if a range contains a specific element. == Synopses Declared in `<mrdocs/Support/Algorithm.hpp>` Determine if a range contains a specific element. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class U> requires std::equality_comparable_with<T, U> bool link:#clang-mrdocs-contains-09[contains]( std::initializer_list<T> const& range, U const& el); ---- [.small]#link:#clang-mrdocs-contains-09[_» more..._]# Determine if a range contains a specific element. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, class El> requires std::equality_comparable_with<El, std::ranges::range_value_t<Range>> bool link:#clang-mrdocs-contains-0e[contains]( Range&& range, El const& el); ---- [.small]#link:#clang-mrdocs-contains-0e[_» more..._]# == Return Value True if the element is found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *range* | The range to search. | *el* | The element to search for. |=== Determine if a range contains a specific element. == Synopsis Declared in `<mrdocs/Support/Algorithm.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class U> requires std::equality_comparable_with<T, U> bool contains( std::initializer_list<T> const& range, U const& el); ---- == Return Value True if the element is found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *range* | The range to search. | *el* | The element to search for. |=== Determine if a range contains a specific element. == Synopsis Declared in `<mrdocs/Support/Algorithm.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, class El> requires std::equality_comparable_with<El, std::ranges::range_value_t<Range>> bool contains( Range&& range, El const& el); ---- == Return Value True if the element is found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *range* | The range to search. | *el* | The element to search for. |=== Determine if a range contains any of the specified elements. == Synopses Declared in `<mrdocs/Support/Algorithm.hpp>` Determine if a range contains any of the specified elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, std::ranges::range Els> requires std::equality_comparable_with<std::ranges::range_value_t<Els>, std::ranges::range_value_t<Range>> bool link:#clang-mrdocs-contains_any-0e[contains_any]( Range const& range, Els const& els); ---- [.small]#link:#clang-mrdocs-contains_any-0e[_» more..._]# Determine if a range contains any of the specified elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, class El> requires std::equality_comparable_with<El, std::ranges::range_value_t<Range>> bool link:#clang-mrdocs-contains_any-009[contains_any]( Range const& range, std::initializer_list<El> const& els); ---- [.small]#link:#clang-mrdocs-contains_any-009[_» more..._]# == Return Value True if any of the elements are found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *range* | The range to search. | *els* | The elements to search for. |=== Determine if a range contains any of the specified elements. == Synopsis Declared in `<mrdocs/Support/Algorithm.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, std::ranges::range Els> requires std::equality_comparable_with<std::ranges::range_value_t<Els>, std::ranges::range_value_t<Range>> bool contains_any( Range const& range, Els const& els); ---- == Return Value True if any of the elements are found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *range* | The range to search. | *els* | The elements to search for. |=== Determine if a range contains any of the specified elements. == Synopsis Declared in `<mrdocs/Support/Algorithm.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, class El> requires std::equality_comparable_with<El, std::ranges::range_value_t<Range>> bool contains_any( Range const& range, std::initializer_list<El> const& els); ---- == Return Value True if any of the elements are found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *range* | The range to search. | *els* | The elements to search for. |=== Determine if a range contains at least N instances of the specified element. == Synopsis Declared in `<mrdocs/Support/Algorithm.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, class El> requires std::equality_comparable_with<El, std::ranges::range_value_t<Range>> bool contains_n( Range const& range, El const& el, std::size_t n); ---- == Return Value True if the element is found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *range* | The range to search. | *el* | The element to search for. | *n* | The number of instances to search for. |=== Determine if a range contains at least N instances of any of the specified elements. == Synopses Declared in `<mrdocs/Support/Algorithm.hpp>` Determine if a range contains at least N instances of any of the specified elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, std::ranges::range Els> requires std::equality_comparable_with<std::ranges::range_value_t<Els>, std::ranges::range_value_t<Range>> bool link:#clang-mrdocs-contains_n_any-06[contains_n_any]( Range const& range, Els const& els, std::size_t n); ---- [.small]#link:#clang-mrdocs-contains_n_any-06[_» more..._]# Determine if a range contains at least N instances of any of the specified elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, class El> requires std::equality_comparable_with<El, std::ranges::range_value_t<Range>> bool link:#clang-mrdocs-contains_n_any-02[contains_n_any]( Range const& range, std::initializer_list<El> const& els, std::size_t n); ---- [.small]#link:#clang-mrdocs-contains_n_any-02[_» more..._]# == Return Value True if the element is found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *range* | The range to search. | *els* | The elements to search for. | *n* | The number of instances to search for. |=== Determine if a range contains at least N instances of any of the specified elements. == Synopsis Declared in `<mrdocs/Support/Algorithm.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, std::ranges::range Els> requires std::equality_comparable_with<std::ranges::range_value_t<Els>, std::ranges::range_value_t<Range>> bool contains_n_any( Range const& range, Els const& els, std::size_t n); ---- == Return Value True if the element is found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *range* | The range to search. | *els* | The elements to search for. | *n* | The number of instances to search for. |=== Determine if a range contains at least N instances of any of the specified elements. == Synopsis Declared in `<mrdocs/Support/Algorithm.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, class El> requires std::equality_comparable_with<El, std::ranges::range_value_t<Range>> bool contains_n_any( Range const& range, std::initializer_list<El> const& els, std::size_t n); ---- == Return Value True if the element is found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *range* | The range to search. | *els* | The elements to search for. | *n* | The number of instances to search for. |=== == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- consteval std::underlying_type_t<InfoKind> countInfoKind(); ---- Create child data objects. == Synopses Declared in `<mrdocs/Support/Handlebars.hpp>` Create child data objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[dom::Object] link:#clang-mrdocs-createFrame-05[createFrame](link:#clang-mrdocs-dom-Object[dom::Object] const& parent); ---- [.small]#link:#clang-mrdocs-createFrame-05[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[dom::Object] link:#clang-mrdocs-createFrame-00[createFrame](link:#clang-mrdocs-dom-Value[dom::Value] const& parent); ---- [.small]#link:#clang-mrdocs-createFrame-00[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[dom::Object] link:#clang-mrdocs-createFrame-01[createFrame]( link:#clang-mrdocs-dom-Object[dom::Object] const& child, link:#clang-mrdocs-dom-Object[dom::Object] const& parent); ---- [.small]#link:#clang-mrdocs-createFrame-01[_» more..._]# == Return Value The overlay object == Parameters [cols=2] |=== | Name | Description | *parent* | The underlying frame object |=== == See Also https://mustache.github.io/mustache.5.html#Sections Create child data objects. == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[dom::Object] createFrame(link:#clang-mrdocs-dom-Object[dom::Object] const& parent); ---- == Description This function can be used by block helpers to create child data objects. The child data object is an overlay frame object implementation that will first look for a value in the child object and if not found will look in the parent object. Helpers that modify the data state should create a new frame object when doing so, to isolate themselves and avoid corrupting the state of any parents. Generally, only one frame needs to be created per helper execution. For example, the each iterator creates a single frame which is reused for all child execution. == Return Value The overlay object == Parameters [cols=2] |=== | Name | Description | *parent* | The underlying frame object |=== == See Also https://mustache.github.io/mustache.5.html#Sections == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[dom::Object] createFrame(link:#clang-mrdocs-dom-Value[dom::Value] const& parent); ---- == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Object[dom::Object] createFrame( link:#clang-mrdocs-dom-Object[dom::Object] const& child, link:#clang-mrdocs-dom-Object[dom::Object] const& parent); ---- Determine if a string ends with one of the specified characters == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool endsWithOneOf( std::string_view s, std::string_view chars) noexcept; ---- == Return Value if a string ends with one of the specified characters == Parameters [cols=2] |=== | Name | Description | *s* | The string to check. | *chars* | The characters to check for. |=== == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void escapeExpression( link:#clang-mrdocs-OutputRef[OutputRef] out, std::string_view str, link:#clang-mrdocs-HandlebarsOptions[HandlebarsOptions] const& opt); ---- Find the last element in a range that matches an element in the specified range. == Synopsis Declared in `<mrdocs/Support/Algorithm.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::ranges::range Range, std::ranges::range Els> requires std::equality_comparable_with<std::ranges::range_value_t<Els>, std::ranges::range_value_t<Range>> auto find_last_of( Range&& range, Els&& els); ---- == Return Value An iterator to the last element found, or std::ranges::end(range) if not found. == Parameters [cols=2] |=== | Name | Description | *range* | The range to search. | *els* | The elements to search for. |=== `forEachFile` overloads == Synopses Declared in `<mrdocs/Support/Path.hpp>` Call a function for each file in a directory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] link:#clang-mrdocs-forEachFile-07[forEachFile]( std::string_view dirPath, bool recursive, link:#clang-mrdocs-AnyFileVisitor[AnyFileVisitor]& visitor); ---- [.small]#link:#clang-mrdocs-forEachFile-07[_» more..._]# Visit each file in a directory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Visitor> link:#clang-mrdocs-Expected-03[Expected<void>] link:#clang-mrdocs-forEachFile-0d3[forEachFile]( std::string_view dirPath, bool recursive, Visitor&& visitor); ---- [.small]#link:#clang-mrdocs-forEachFile-0d3[_» more..._]# == Return Value An error if any occurred. == Parameters [cols=2] |=== | Name | Description | *dirPath* | The path to the directory. | *recursive* | If true, files in subdirectories are also visited, recursively. | *visitor* | The visitor to invoke for each file. |=== Call a function for each file in a directory. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<void>] forEachFile( std::string_view dirPath, bool recursive, link:#clang-mrdocs-AnyFileVisitor[AnyFileVisitor]& visitor); ---- == Description This will iterate all the regular files in a directory and invoke the visitor with the path. == Return Value An error if any occurred. == Parameters [cols=2] |=== | Name | Description | *dirPath* | The path to the directory. | *recursive* | If true, files in subdirectories are also visited, recursively. | *visitor* | The visitor to invoke for each file. |=== Visit each file in a directory. == Synopsis Declared in `<mrdocs/Support/Path.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Visitor> link:#clang-mrdocs-Expected-03[Expected<void>] forEachFile( std::string_view dirPath, bool recursive, Visitor&& visitor); ---- == Return Value An error if any occurred. == Parameters [cols=2] |=== | Name | Description | *dirPath* | The path to the directory. | *recursive* | If true, files in subdirectories are also visited, recursively. | *visitor* | A callable object which is invoked for each file. This visitor might return `void` or `Expected<void>`. |=== Return a formatted error. == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> link:#clang-mrdocs-Error[Error] formatError( link:#clang-mrdocs-FormatString[FormatString<Args...>] fs, Args...&&... args); ---- == Return Value a formatted error. == Parameters [cols=2] |=== | Name | Description | *fs* | The format string. This must not be empty. | *args* | Zero or more values to substitute into the format string. |=== Convert a string to a FundamentalTypeKind. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool fromString( std::string_view str, link:#clang-mrdocs-FundamentalTypeKind[FundamentalTypeKind]& kind) noexcept; ---- == Description This function converts a string to a FundamentalTypeKind. All variations of the type specifiers are supported. However, the "long long" specifier cannot be split into two separate specifiers. == Return Value true if the string was successfully converted == Parameters [cols=2] |=== | Name | Description | *str* | The string to convert | *kind* [out] | The resulting FundamentalTypeKind |=== == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view getDefaultAccessString(link:#clang-mrdocs-RecordKeyKind[RecordKeyKind] const& kind) noexcept; ---- Return a reference to the global Generators instance. == Synopsis Declared in `<mrdocs/Generators.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Generators[Generators] const& getGenerators() noexcept; ---- == Return Value a reference to the global Generators instance. Return the short name of an operator as a string. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OperatorKind[OperatorKind] getOperatorKind(std::string_view name) noexcept; ---- == Return Value The OperatorKind, or OperatorKind::None if not recognized. == Parameters [cols=2] |=== | Name | Description | *name* | The operator name, e.g. `operator+`, `operator++`, `operator[]`, etc. |=== Return the short name of an operator as a string. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OperatorKind[OperatorKind] getOperatorKindFromSuffix(std::string_view suffix) noexcept; ---- == Return Value The OperatorKind, or OperatorKind::None if not recognized. == Parameters [cols=2] |=== | Name | Description | *suffix* | The operator suffix, e.g. `+`, `++`, `[]`, etc. |=== Return the name of an operator as a string. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view getOperatorName( link:#clang-mrdocs-OperatorKind[OperatorKind] kind, bool include_keyword = false) noexcept; ---- == Return Value the name of an operator as a string. == Parameters [cols=2] |=== | Name | Description | *kind* | The kind of operator. | *include_keyword* | Whether the name should be prefixed with the `operator` keyword. |=== Return the human‐readable name of the operator == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<std::string_view> getOperatorReadableName( link:#clang-mrdocs-OperatorKind[OperatorKind] kind, int nParams); ---- == Return Value The readable name, or nullopt if the operator is not recognized. == Parameters [cols=2] |=== | Name | Description | *kind* | The kind of operator. | *nParams* | The number of parameters the operator takes. |=== Return a list of the parent symbols of the specified Info. == Synopses Declared in `<mrdocs/Corpus.hpp>` Return a list of the parent symbols of the specified Info. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> link:#clang-mrdocs-getParents-0e[getParents]( link:#clang-mrdocs-Corpus[Corpus] const& C, link:#clang-mrdocs-Info[Info] const& I); ---- [.small]#link:#clang-mrdocs-getParents-0e[_» more..._]# Return a list of the parent symbols of the specified Info. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[dom::Array] link:#clang-mrdocs-getParents-02[getParents]( link:#clang-mrdocs-DomCorpus[DomCorpus] const& C, link:#clang-mrdocs-Info[Info] const& I); ---- [.small]#link:#clang-mrdocs-getParents-02[_» more..._]# Return a list of the parent symbols of the specified Info. == Synopsis Declared in `<mrdocs/Corpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<SymbolID> getParents( link:#clang-mrdocs-Corpus[Corpus] const& C, link:#clang-mrdocs-Info[Info] const& I); ---- == Return Value a list of the parent symbols of the specified Info. == Parameters [cols=2] |=== | Name | Description | *C* | The collection of declarations in extracted form. | *I* | Base class with common properties of all symbols |=== Return a list of the parent symbols of the specified Info. == Synopsis Declared in `<mrdocs/Metadata/DomCorpus.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Array[dom::Array] getParents( link:#clang-mrdocs-DomCorpus[DomCorpus] const& C, link:#clang-mrdocs-Info[Info] const& I); ---- == Return Value a list of the parent symbols of the specified Info. == Parameters [cols=2] |=== | Name | Description | *C* | Front‐end factory for producing Dom nodes. | *I* | Base class with common properties of all symbols |=== == Synopses Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OptionalLocation[OptionalLocation] link:#clang-mrdocs-getPrimaryLocation-0f[getPrimaryLocation](link:#clang-mrdocs-Info[Info] const& I); ---- [.small]#link:#clang-mrdocs-getPrimaryLocation-0f[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OptionalLocation[OptionalLocation] link:#clang-mrdocs-getPrimaryLocation-01[getPrimaryLocation]( link:#clang-mrdocs-SourceInfo[SourceInfo] const& I, bool preferDefinition); ---- [.small]#link:#clang-mrdocs-getPrimaryLocation-01[_» more..._]# == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OptionalLocation[OptionalLocation] getPrimaryLocation(link:#clang-mrdocs-Info[Info] const& I); ---- == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OptionalLocation[OptionalLocation] getPrimaryLocation( link:#clang-mrdocs-SourceInfo[SourceInfo] const& I, bool preferDefinition); ---- Return the safe name of an operator as a string. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view getSafeOperatorName( link:#clang-mrdocs-OperatorKind[OperatorKind] kind, bool include_keyword = false) noexcept; ---- == Return Value the safe name of an operator as a string. == Parameters [cols=2] |=== | Name | Description | *kind* | The kind of operator. | *include_keyword* | Whether the name should be prefixed with `operator`. |=== Return the short name of an operator as a string. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view getShortOperatorName(link:#clang-mrdocs-OperatorKind[OperatorKind] kind) noexcept; ---- == Return Value the short name of an operator as a string. == Parameters [cols=2] |=== | Name | Description | *kind* | Operator kinds |=== Return the full path for single page output. == Synopsis Declared in `<mrdocs/Generator.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Expected-03[Expected<std::string>] getSinglePageFullPath( std::string_view outputPath, std::string_view extension); ---- == Description This function determines the full path for a single‐page output file based on the provided `outputPath` and file `extension`. If the `outputPath` already exists: ‐ If it is a directory, appends the default file name with the provided extension. ‐ If it is a file, uses the provided `outputPath` directly. If the `outputPath` does not exist: ‐ If it ends with a '/', assumes it is a directory and appends the default file name. ‐ Otherwise, it returns an error because the path is ambiguous. == Return Value The full path or an error if the `outputPath` is ambiguous. == Parameters [cols=2] |=== | Name | Description | *outputPath* | The specified output path, which can be a directory or file. | *extension* | The file extension to use for single‐page output. |=== Return the inner type. == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Return the inner type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<std::reference_wrapper<Polymorphic<TypeInfo>>> link:#clang-mrdocs-innerType-0f7[innerType](link:#clang-mrdocs-TypeInfo[TypeInfo]& TI) noexcept; ---- [.small]#link:#clang-mrdocs-innerType-0f7[_» more..._]# Return the inner type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<std::reference_wrapper<Polymorphic<TypeInfo> const>> link:#clang-mrdocs-innerType-0f5[innerType](link:#clang-mrdocs-TypeInfo[TypeInfo] const& TI) noexcept; ---- [.small]#link:#clang-mrdocs-innerType-0f5[_» more..._]# Return the inner type. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<std::reference_wrapper<Polymorphic<TypeInfo>>> innerType(link:#clang-mrdocs-TypeInfo[TypeInfo]& TI) noexcept; ---- == Description The inner type is the type which is modified by a specifier (e.g. "int" in "pointer to int". == Return Value the inner type. == Parameters [cols=2] |=== | Name | Description | *TI* | A possibly qualified type. |=== Return the inner type. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<std::reference_wrapper<Polymorphic<TypeInfo> const>> innerType(link:#clang-mrdocs-TypeInfo[TypeInfo] const& TI) noexcept; ---- == Description The inner type is the type which is modified by a specifier (e.g. "int" in "pointer to int". == Return Value the inner type. == Parameters [cols=2] |=== | Name | Description | *TI* | A possibly qualified type. |=== Return the inner type. == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Return the inner type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-TypeInfo[TypeInfo]* link:#clang-mrdocs-innerTypePtr-0d[innerTypePtr](link:#clang-mrdocs-TypeInfo[TypeInfo]& TI) noexcept; ---- [.small]#link:#clang-mrdocs-innerTypePtr-0d[_» more..._]# Return the inner type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-TypeInfo[TypeInfo] const* link:#clang-mrdocs-innerTypePtr-0c[innerTypePtr](link:#clang-mrdocs-TypeInfo[TypeInfo] const& TI) noexcept; ---- [.small]#link:#clang-mrdocs-innerTypePtr-0c[_» more..._]# Return the inner type. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-TypeInfo[TypeInfo]* innerTypePtr(link:#clang-mrdocs-TypeInfo[TypeInfo]& TI) noexcept; ---- == Description The inner type is the type which is modified by a specifier (e.g. "int" in "pointer to int". == Return Value the inner type. == Parameters [cols=2] |=== | Name | Description | *TI* | A possibly qualified type. |=== Return the inner type. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-TypeInfo[TypeInfo] const* innerTypePtr(link:#clang-mrdocs-TypeInfo[TypeInfo] const& TI) noexcept; ---- == Description The inner type is the type which is modified by a specifier (e.g. "int" in "pointer to int". == Return Value the inner type. == Parameters [cols=2] |=== | Name | Description | *TI* | A possibly qualified type. |=== Return the innermost type. == Synopses Declared in `<mrdocs/Metadata/Type.hpp>` Return the innermost type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>]& link:#clang-mrdocs-innermostType-00[innermostType](link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>]& TI) noexcept; ---- [.small]#link:#clang-mrdocs-innermostType-00[_» more..._]# Return the innermost type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& link:#clang-mrdocs-innermostType-0d[innermostType](link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& TI) noexcept; ---- [.small]#link:#clang-mrdocs-innermostType-0d[_» more..._]# Return the innermost type. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>]& innermostType(link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>]& TI) noexcept; ---- == Description The innermost type is the type which is not modified by any specifiers (e.g. "int" in "pointer to const int"). If the type has an inner type, we recursively call this function until we reach the innermost type. If the type has no inner type, we return the current type. == Return Value the innermost type. == Parameters [cols=2] |=== | Name | Description | *TI* | A polymorphic value‐type. |=== Return the innermost type. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& innermostType(link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& TI) noexcept; ---- == Description The innermost type is the type which is not modified by any specifiers (e.g. "int" in "pointer to const int"). If the type has an inner type, we recursively call this function until we reach the innermost type. If the type has no inner type, we return the current type. == Return Value the innermost type. == Parameters [cols=2] |=== | Name | Description | *TI* | A polymorphic value‐type. |=== == Synopses Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-isAlphaNumeric-01a[isAlphaNumeric](std::string_view const s) noexcept; ---- [.small]#link:#clang-mrdocs-isAlphaNumeric-01a[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-isAlphaNumeric-012[isAlphaNumeric](char const c) noexcept; ---- [.small]#link:#clang-mrdocs-isAlphaNumeric-012[_» more..._]# == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isAlphaNumeric(std::string_view const s) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isAlphaNumeric(char const c) noexcept; ---- == Synopses Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-isAlphabetic-05[isAlphabetic](std::string_view const s) noexcept; ---- [.small]#link:#clang-mrdocs-isAlphabetic-05[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-isAlphabetic-09[isAlphabetic](char const c) noexcept; ---- [.small]#link:#clang-mrdocs-isAlphabetic-09[_» more..._]# == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isAlphabetic(std::string_view const s) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isAlphabetic(char const c) noexcept; ---- Determines whether the operator is potentially binary. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isBinaryOperator(link:#clang-mrdocs-OperatorKind[OperatorKind] kind) noexcept; ---- == Return Value whether the operator is potentially binary. == Parameters [cols=2] |=== | Name | Description | *kind* | Operator kinds |=== == Synopses Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-isDigit-06[isDigit](std::string_view const s) noexcept; ---- [.small]#link:#clang-mrdocs-isDigit-06[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-isDigit-0a[isDigit](char const c) noexcept; ---- [.small]#link:#clang-mrdocs-isDigit-0a[_» more..._]# == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isDigit(std::string_view const s) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isDigit(char const c) noexcept; ---- Determine if a value is empty == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isEmpty(link:#clang-mrdocs-dom-Value[dom::Value] const& arg); ---- == Description This is used by the built‐in if and with helpers to control their execution flow. The Handlebars definition of empty is any of: ‐ Array with length 0 ‐ falsy values other than 0 This is intended to match the Mustache Behaviour. == Return Value True if the value is empty, false otherwise == Parameters [cols=2] |=== | Name | Description | *arg* | The value to test |=== == See Also https://mustache.github.io/mustache.5.html#Sections == Synopses Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-isLowerCase-049[isLowerCase](std::string_view const s) noexcept; ---- [.small]#link:#clang-mrdocs-isLowerCase-049[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-isLowerCase-044[isLowerCase](char const c) noexcept; ---- [.small]#link:#clang-mrdocs-isLowerCase-044[_» more..._]# == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isLowerCase(std::string_view const s) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isLowerCase(char const c) noexcept; ---- Determines whether the operator is potentially unary. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isUnaryOperator(link:#clang-mrdocs-OperatorKind[OperatorKind] kind) noexcept; ---- == Return Value whether the operator is potentially unary. == Parameters [cols=2] |=== | Name | Description | *kind* | Operator kinds |=== == Synopses Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-isUpperCase-0c[isUpperCase](std::string_view const s) noexcept; ---- [.small]#link:#clang-mrdocs-isUpperCase-0c[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-isUpperCase-0f[isUpperCase](char const c) noexcept; ---- [.small]#link:#clang-mrdocs-isUpperCase-0f[_» more..._]# == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isUpperCase(std::string_view const s) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isUpperCase(char const c) noexcept; ---- Determine if a string is only whitespace. == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool isWhitespace(std::string_view s) noexcept; ---- == Return Value true if the string is empty or contains only whitespace characters (space, tab, newline, vertical tab, form feed, carriage return). false otherwise. == Parameters [cols=2] |=== | Name | Description | *s* | The string to check. |=== Determine if an element is equal to any of the elements in the specified range. == Synopses Declared in `<mrdocs/Support/Algorithm.hpp>` Determine if an element is equal to any of the elements in the specified range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class El, std::ranges::range Range> requires std::equality_comparable_with<std::ranges::range_value_t<Range>, El> bool link:#clang-mrdocs-is_one_of-0c[is_one_of]( El const& el, Range const& range); ---- [.small]#link:#clang-mrdocs-is_one_of-0c[_» more..._]# Determine if an element is equal to any of the elements in the specified range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class T> requires std::equality_comparable_with<U, T> bool link:#clang-mrdocs-is_one_of-0e[is_one_of]( U const& el, std::initializer_list<T> const& range); ---- [.small]#link:#clang-mrdocs-is_one_of-0e[_» more..._]# == Return Value True if the element is found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *el* | The element to search for. | *range* | The range to search. |=== Determine if an element is equal to any of the elements in the specified range. == Synopsis Declared in `<mrdocs/Support/Algorithm.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class El, std::ranges::range Range> requires std::equality_comparable_with<std::ranges::range_value_t<Range>, El> bool is_one_of( El const& el, Range const& range); ---- == Return Value True if the element is found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *el* | The element to search for. | *range* | The range to search. |=== Determine if an element is equal to any of the elements in the specified range. == Synopsis Declared in `<mrdocs/Support/Algorithm.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class T> requires std::equality_comparable_with<U, T> bool is_one_of( U const& el, std::initializer_list<T> const& range); ---- == Return Value True if the element is found, false otherwise. == Parameters [cols=2] |=== | Name | Description | *el* | The element to search for. | *range* | The range to search. |=== Compare ExtractionModes and returns the least specific == Synopsis Declared in `<mrdocs/Metadata/ExtractionMode.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-ExtractionMode[ExtractionMode] leastSpecific( link:#clang-mrdocs-ExtractionMode[ExtractionMode] const a, link:#clang-mrdocs-ExtractionMode[ExtractionMode] const b) noexcept; ---- == Description This function returns the least specific of the two ExtractionModes in terms of the number of filters passed. If the symbol passes the filter that categorizes it as `a`, then it also passes the filter that categorizes it as `b` (or vice‐versa), then this function will return the final category for the symbol. == Return Value Determine why a symbol is extracted == Parameters [cols=2] |=== | Name | Description | *a* | Determine why a symbol is extracted | *b* | Determine why a symbol is extracted |=== `ltrim` overloads == Synopses Declared in `<mrdocs/Support/String.hpp>` Return the substring without leading horizontal whitespace. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view link:#clang-mrdocs-ltrim-07[ltrim](std::string_view const s) noexcept; ---- [.small]#link:#clang-mrdocs-ltrim-07[_» more..._]# Return the substring without leading specified characters. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view link:#clang-mrdocs-ltrim-02[ltrim]( std::string_view const s, std::string_view const chars) noexcept; ---- [.small]#link:#clang-mrdocs-ltrim-02[_» more..._]# == Return Value The modified string. == Parameters [cols=2] |=== | Name | Description | *s* | The string to trim. | *chars* | The characters to remove. |=== Return the substring without leading horizontal whitespace. == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view ltrim(std::string_view const s) noexcept; ---- == Return Value The modified string. == Parameters [cols=2] |=== | Name | Description | *s* | The string to trim. |=== Return the substring without leading specified characters. == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view ltrim( std::string_view const s, std::string_view const chars) noexcept; ---- == Return Value The modified string. == Parameters [cols=2] |=== | Name | Description | *s* | The string to trim. | *chars* | The characters to remove. |=== Apply the "char" specifier to the type == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool makeChar(link:#clang-mrdocs-FundamentalTypeKind[FundamentalTypeKind]& kind) noexcept; ---- == Description If applying the "char" specifier to a type that might have been declared only with "signed/unsigned" or "short/long" specifiers, the function changes the type and returns true. For instance, applying "char" to `FundamentalTypeKind::Int` ("int", which could be declared as "signed") results in `FundamentalTypeKind::SignedChar` ("signed char"). == Return Value Whether the operation was successful == Parameters [cols=2] |=== | Name | Description | *kind* [in] | The type to modify |=== Apply the "long" specifier to the type == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool makeLong(link:#clang-mrdocs-FundamentalTypeKind[FundamentalTypeKind]& kind) noexcept; ---- == Description If applying "long" the specifier is a valid operation the function changes the type and returns true. For instance, applying "long" to `FundamentalTypeKind::Int` ("int") results in `FundamentalTypeKind::Long` ("long int"). == Return Value Whether the operation was successful == Parameters [cols=2] |=== | Name | Description | *kind* [in] | The type to modify |=== Apply the "short" specifier to the type == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool makeShort(link:#clang-mrdocs-FundamentalTypeKind[FundamentalTypeKind]& kind) noexcept; ---- == Description If applying "short" the specifier is a valid operation the function changes the type and returns true. For instance, applying "short" to `FundamentalTypeKind::Int` ("int") results in `FundamentalTypeKind::Short` ("short int"). == Return Value Whether the operation was successful == Parameters [cols=2] |=== | Name | Description | *kind* [in] | The type to modify |=== Apply the "signed" specifier to the type == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool makeSigned(link:#clang-mrdocs-FundamentalTypeKind[FundamentalTypeKind]& kind) noexcept; ---- == Description If applying the "signed" specifier is a valid operation the function changes the type and returns true. For instance, applying "signed" to `FundamentalTypeKind::Char` ("char") results in `FundamentalTypeKind::SignedChar` ("signed char"). It also returns true if applying the "signed" specifier is a valid operation but doesn't affect the type. For instance, applying "signed" to `FundamentalTypeKind::Int` ("int") doesn't change the type but returns `true`, even though `FundamentalTypeKind::Int` could be declared as "int" or "signed" and multiple "signed" specifiers are not allowed. == Return Value Whether the operation was successful == Parameters [cols=2] |=== | Name | Description | *kind* [in] | The type to modify |=== Apply the "unsigned" specifier to the type == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool makeUnsigned(link:#clang-mrdocs-FundamentalTypeKind[FundamentalTypeKind]& kind) noexcept; ---- == Description If applying the "unsigned" specifier is a valid operation the function changes the type and returns true. For instance, applying "unsigned" to `FundamentalTypeKind::Char` ("char") results in `FundamentalTypeKind::UnsignedChar` ("unsigned char") and applying "unsigned" to `FundamentalTypeKind::Int` ("int") results in `FundamentalTypeKind::UnsignedInt` ("unsigned int"). == Return Value Whether the operation was successful == Parameters [cols=2] |=== | Name | Description | *kind* [in] | The type to modify |=== Make a visitor for a base type == Synopsis Declared in `<mrdocs/Support/Visitor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename BaseTy, typename ObjectTy, typename FnTy, typename... ArgsTy> auto makeVisitor( ObjectTy&& obj, FnTy&& fn, ArgsTy...&&... args); ---- == Description The returned visitor is an object with a template method `visit` which can be called with a derived type of the object being visited. The visitor stores the arguments `args` passed to this function, and its method `visit` calls the function `fn` with the derived type as the first argument, followed by `args`. == Return Value The common return type of `fn` when called with a derived type of `obj` and `args` == Parameters [cols=2] |=== | Name | Description | *obj* | The object to visit | *fn* | The function object to call | *args* | The arguments to pass to the function object |=== `merge` overloads == Synopses Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-07ff[merge]( link:#clang-mrdocs-ConceptInfo[ConceptInfo]& I, link:#clang-mrdocs-ConceptInfo[ConceptInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-07ff[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-004[merge]( link:#clang-mrdocs-EnumConstantInfo[EnumConstantInfo]& I, link:#clang-mrdocs-EnumConstantInfo[EnumConstantInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-004[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-009[merge]( link:#clang-mrdocs-EnumInfo[EnumInfo]& I, link:#clang-mrdocs-EnumInfo[EnumInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-009[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-05[merge]( link:#clang-mrdocs-ExprInfo[ExprInfo]& I, link:#clang-mrdocs-ExprInfo[ExprInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-05[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-08[merge]( link:#clang-mrdocs-FriendInfo[FriendInfo]& I, link:#clang-mrdocs-FriendInfo[FriendInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-08[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-017[merge]( link:#clang-mrdocs-FunctionInfo[FunctionInfo]& I, link:#clang-mrdocs-FunctionInfo[FunctionInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-017[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-0cf[merge]( link:#clang-mrdocs-GuideInfo[GuideInfo]& I, link:#clang-mrdocs-GuideInfo[GuideInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-0cf[_» more..._]# Merges two Info objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-06[merge]( link:#clang-mrdocs-Info[Info]& I, link:#clang-mrdocs-Info[Info]&& Other); ---- [.small]#link:#clang-mrdocs-merge-06[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-07c[merge]( link:#clang-mrdocs-Javadoc[Javadoc]& I, link:#clang-mrdocs-Javadoc[Javadoc]&& other); ---- [.small]#link:#clang-mrdocs-merge-07c[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-0ce[merge]( link:#clang-mrdocs-NamespaceAliasInfo[NamespaceAliasInfo]& I, link:#clang-mrdocs-NamespaceAliasInfo[NamespaceAliasInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-0ce[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-0a5[merge]( link:#clang-mrdocs-NamespaceInfo[NamespaceInfo]& I, link:#clang-mrdocs-NamespaceInfo[NamespaceInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-0a5[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-09[merge]( link:#clang-mrdocs-NamespaceTranche[NamespaceTranche]& I, link:#clang-mrdocs-NamespaceTranche[NamespaceTranche]&& Other); ---- [.small]#link:#clang-mrdocs-merge-09[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-019[merge]( link:#clang-mrdocs-OverloadsInfo[OverloadsInfo]& I, link:#clang-mrdocs-OverloadsInfo[OverloadsInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-019[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-014[merge]( link:#clang-mrdocs-Param[Param]& I, link:#clang-mrdocs-Param[Param]&& Other); ---- [.small]#link:#clang-mrdocs-merge-014[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-0e[merge]( link:#clang-mrdocs-RecordInfo[RecordInfo]& I, link:#clang-mrdocs-RecordInfo[RecordInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-0e[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-029[merge]( link:#clang-mrdocs-RecordInterface[RecordInterface]& I, link:#clang-mrdocs-RecordInterface[RecordInterface]&& Other); ---- [.small]#link:#clang-mrdocs-merge-029[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-0c9[merge]( link:#clang-mrdocs-RecordTranche[RecordTranche]& I, link:#clang-mrdocs-RecordTranche[RecordTranche]&& Other); ---- [.small]#link:#clang-mrdocs-merge-0c9[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-0af[merge]( link:#clang-mrdocs-SourceInfo[SourceInfo]& I, link:#clang-mrdocs-SourceInfo[SourceInfo] const& Other); ---- [.small]#link:#clang-mrdocs-merge-0af[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-045[merge]( link:#clang-mrdocs-SourceInfo[SourceInfo]& I, link:#clang-mrdocs-SourceInfo[SourceInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-045[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-021[merge]( link:#clang-mrdocs-TemplateInfo[TemplateInfo]& I, link:#clang-mrdocs-TemplateInfo[TemplateInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-021[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-038[merge]( link:#clang-mrdocs-TypedefInfo[TypedefInfo]& I, link:#clang-mrdocs-TypedefInfo[TypedefInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-038[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-0f[merge]( link:#clang-mrdocs-UsingInfo[UsingInfo]& I, link:#clang-mrdocs-UsingInfo[UsingInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-0f[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-merge-018[merge]( link:#clang-mrdocs-VariableInfo[VariableInfo]& I, link:#clang-mrdocs-VariableInfo[VariableInfo]&& Other); ---- [.small]#link:#clang-mrdocs-merge-018[_» more..._]# Merges two Info objects according to the behavior of the derived class. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-polymorphic_storage_for[polymorphic_storage_for<Info>] InfoTy> void link:#clang-mrdocs-merge-04d[merge]( InfoTy& I, InfoTy&& Other); ---- [.small]#link:#clang-mrdocs-merge-04d[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> static void link:#clang-mrdocs-merge-07f7[merge]( link:#clang-mrdocs-ConstantExprInfo[ConstantExprInfo<T>]& I, link:#clang-mrdocs-ConstantExprInfo[ConstantExprInfo<T>]&& Other); ---- [.small]#link:#clang-mrdocs-merge-07f7[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *I* | The Info object to merge into. | *Other* | The Info object to merge from. |=== == Synopsis Declared in `<mrdocs/Metadata/Info/Concept.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-ConceptInfo[ConceptInfo]& I, link:#clang-mrdocs-ConceptInfo[ConceptInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/EnumConstant.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-EnumConstantInfo[EnumConstantInfo]& I, link:#clang-mrdocs-EnumConstantInfo[EnumConstantInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Enum.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-EnumInfo[EnumInfo]& I, link:#clang-mrdocs-EnumInfo[EnumInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Expression.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-ExprInfo[ExprInfo]& I, link:#clang-mrdocs-ExprInfo[ExprInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Friend.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-FriendInfo[FriendInfo]& I, link:#clang-mrdocs-FriendInfo[FriendInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-FunctionInfo[FunctionInfo]& I, link:#clang-mrdocs-FunctionInfo[FunctionInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Guide.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-GuideInfo[GuideInfo]& I, link:#clang-mrdocs-GuideInfo[GuideInfo]&& Other); ---- Merges two Info objects. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-Info[Info]& I, link:#clang-mrdocs-Info[Info]&& Other); ---- == Description This function is used to merge two Info objects with the same SymbolID. The function assumes that the two Info objects are of the same type. If they are not, the function will fail. == Parameters [cols=2] |=== | Name | Description | *I* | The Info object to merge into. | *Other* | The Info object to merge from. |=== == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-Javadoc[Javadoc]& I, link:#clang-mrdocs-Javadoc[Javadoc]&& other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/NamespaceAlias.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-NamespaceAliasInfo[NamespaceAliasInfo]& I, link:#clang-mrdocs-NamespaceAliasInfo[NamespaceAliasInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-NamespaceInfo[NamespaceInfo]& I, link:#clang-mrdocs-NamespaceInfo[NamespaceInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-NamespaceTranche[NamespaceTranche]& I, link:#clang-mrdocs-NamespaceTranche[NamespaceTranche]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-OverloadsInfo[OverloadsInfo]& I, link:#clang-mrdocs-OverloadsInfo[OverloadsInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-Param[Param]& I, link:#clang-mrdocs-Param[Param]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-RecordInfo[RecordInfo]& I, link:#clang-mrdocs-RecordInfo[RecordInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-RecordInterface[RecordInterface]& I, link:#clang-mrdocs-RecordInterface[RecordInterface]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-RecordTranche[RecordTranche]& I, link:#clang-mrdocs-RecordTranche[RecordTranche]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-SourceInfo[SourceInfo]& I, link:#clang-mrdocs-SourceInfo[SourceInfo] const& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-SourceInfo[SourceInfo]& I, link:#clang-mrdocs-SourceInfo[SourceInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-TemplateInfo[TemplateInfo]& I, link:#clang-mrdocs-TemplateInfo[TemplateInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Typedef.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-TypedefInfo[TypedefInfo]& I, link:#clang-mrdocs-TypedefInfo[TypedefInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Using.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-UsingInfo[UsingInfo]& I, link:#clang-mrdocs-UsingInfo[UsingInfo]&& Other); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void merge( link:#clang-mrdocs-VariableInfo[VariableInfo]& I, link:#clang-mrdocs-VariableInfo[VariableInfo]&& Other); ---- Merges two Info objects according to the behavior of the derived class. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-polymorphic_storage_for[polymorphic_storage_for<Info>] InfoTy> void merge( InfoTy& I, InfoTy&& Other); ---- == Parameters [cols=2] |=== | Name | Description | *I* | The Info object to merge into. | *Other* | The Info object to merge from. |=== == Synopsis Declared in `<mrdocs/Metadata/Expression.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> static void merge( link:#clang-mrdocs-ConstantExprInfo[ConstantExprInfo<T>]& I, link:#clang-mrdocs-ConstantExprInfo[ConstantExprInfo<T>]&& Other); ---- Compare ExtractionModes and returns the most specific == Synopsis Declared in `<mrdocs/Metadata/ExtractionMode.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr link:#clang-mrdocs-ExtractionMode[ExtractionMode] mostSpecific( link:#clang-mrdocs-ExtractionMode[ExtractionMode] const a, link:#clang-mrdocs-ExtractionMode[ExtractionMode] const b) noexcept; ---- == Description This function returns the most specific of the two ExtractionModes in terms of number of filters passed. == Return Value Determine why a symbol is extracted == Parameters [cols=2] |=== | Name | Description | *a* | Determine why a symbol is extracted | *b* | Determine why a symbol is extracted |=== Determine if one function would override the other == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool overrides( link:#clang-mrdocs-FunctionInfo[FunctionInfo] const& base, link:#clang-mrdocs-FunctionInfo[FunctionInfo] const& derived); ---- == Return Value if one function would override the other == Parameters [cols=2] |=== | Name | Description | *base* | The base function | *derived* | The derived function |=== Parse a string view == Synopses Declared in `<mrdocs/Support/Parse.hpp>` Parse a string view [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-HasParse[HasParse] T> link:#clang-mrdocs-Expected-03[Expected<T>] link:#clang-mrdocs-parse-04[parse](std::string_view sv); ---- [.small]#link:#clang-mrdocs-parse-04[_» more..._]# Parse a string view [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-HasParse[HasParse] T> link:#clang-mrdocs-ParseResult[ParseResult] link:#clang-mrdocs-parse-02[parse]( std::string_view sv, T& value); ---- [.small]#link:#clang-mrdocs-parse-02[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *sv* | The string view to parse | *value* | The value to store the result |=== Parse a string view == Synopsis Declared in `<mrdocs/Support/Parse.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-HasParse[HasParse] T> link:#clang-mrdocs-Expected-03[Expected<T>] parse(std::string_view sv); ---- == Description Parse a string view `sv` as an object of type `T`. If parsing fails, the function returns an error. This overload does not return the `ParseResult` object containing the pointer to the first character not parsed. Instead, the position of the error is calculated and the error message is formatted with the error position. This function parses a string view `sv` into a value of type `T`. The function calls the `parse` function for the type `T` with the `sv.data()` and `sv.data() + sv.size()` as the first and last pointers, respectively. If the parse function returns an error, then the function returns the error. If the parse function returns success, but there are characters left in the string view, then the function returns an error with the message "trailing characters". Otherwise, it returns the value. == Return Value A container holding an error or a value. == Parameters [cols=2] |=== | Name | Description | *sv* | The string view to parse |=== Parse a string view == Synopsis Declared in `<mrdocs/Support/Parse.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<link:#clang-mrdocs-HasParse[HasParse] T> link:#clang-mrdocs-ParseResult[ParseResult] parse( std::string_view sv, T& value); ---- == Description This function parses a string view `sv` into a value of type `T`. The function calls the `parse` function for the type `T` with the `sv.data()` and `sv.data() + sv.size()` as the first and last pointers, respectively. If the parse function returns an error, then the function returns the error. If the parse function returns success, but there are characters left in the string view, then the function returns an error with the message "trailing characters". Otherwise, it returns the value. == Return Value The result of a parse operation. == Parameters [cols=2] |=== | Name | Description | *sv* | The string view to parse | *value* | The value to store the result |=== Return the substring without leading and trailing horizontal whitespace. == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void replace( std::string& s, std::string_view from, std::string_view to); ---- == Return Value The modified string. == Parameters [cols=2] |=== | Name | Description | *s* | The string to trim. | *from* | The substring to remove. | *to* | The substring to replace with. If this is empty, the substring is removed. |=== `rtrim` overloads == Synopses Declared in `<mrdocs/Support/String.hpp>` Return the substring without trailing horizontal whitespace. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view link:#clang-mrdocs-rtrim-0c[rtrim](std::string_view const s) noexcept; ---- [.small]#link:#clang-mrdocs-rtrim-0c[_» more..._]# Return the substring without trailing specified characters. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view link:#clang-mrdocs-rtrim-0e[rtrim]( std::string_view const s, std::string_view const chars) noexcept; ---- [.small]#link:#clang-mrdocs-rtrim-0e[_» more..._]# == Return Value The modified string. == Parameters [cols=2] |=== | Name | Description | *s* | The string to trim. | *chars* | The characters to remove. |=== Return the substring without trailing horizontal whitespace. == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view rtrim(std::string_view const s) noexcept; ---- == Return Value The modified string. == Parameters [cols=2] |=== | Name | Description | *s* | The string to trim. |=== Return the substring without trailing specified characters. == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view rtrim( std::string_view const s, std::string_view const chars) noexcept; ---- == Return Value The modified string. == Parameters [cols=2] |=== | Name | Description | *s* | The string to trim. | *chars* | The characters to remove. |=== Create a wrapper for a safe string. == Synopses Declared in `<mrdocs/Dom/Value.hpp>` Create a wrapper for a safe string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[Value] link:#clang-mrdocs-safeString-06[safeString](std::string_view str); ---- [.small]#link:#clang-mrdocs-safeString-06[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] link:#clang-mrdocs-safeString-0a[safeString](link:#clang-mrdocs-dom-Value[dom::Value] const& str); ---- [.small]#link:#clang-mrdocs-safeString-0a[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<std::string_view> SV> link:#clang-mrdocs-dom-Value[dom::Value] link:#clang-mrdocs-safeString-0b[safeString](SV const& str); ---- [.small]#link:#clang-mrdocs-safeString-0b[_» more..._]# == Return Value The safe string wrapper == Parameters [cols=2] |=== | Name | Description | *str* | The string to mark as safe |=== == See Also https://handlebarsjs.com/api‐reference/utilities.html#handlebars‐safestring‐string Create a wrapper for a safe string. == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[Value] safeString(std::string_view str); ---- == Description This string wrapper prevents the string from being escaped when the template is rendered. When a helper returns a safe string, it will be marked as safe and will not be escaped when rendered. The string will be rendered as if converted to a `dom::Value` and rendered as‐is. When constructing the string that will be marked as safe, any external content should be properly escaped using the `escapeExpression` function to avoid potential security concerns. == Return Value The safe string wrapper == Parameters [cols=2] |=== | Name | Description | *str* | The string to mark as safe |=== == See Also https://handlebarsjs.com/api‐reference/utilities.html#handlebars‐safestring‐string == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-Value[dom::Value] safeString(link:#clang-mrdocs-dom-Value[dom::Value] const& str); ---- == Synopsis Declared in `<mrdocs/Dom/Value.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<std::convertible_to<std::string_view> SV> link:#clang-mrdocs-dom-Value[dom::Value] safeString(SV const& str); ---- Determine if a string starts with one of the specified characters == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool startsWithOneOf( std::string_view s, std::string_view chars) noexcept; ---- == Return Value if a string starts with one of the specified characters == Parameters [cols=2] |=== | Name | Description | *s* | The string to check. | *chars* | The characters to check for. |=== == Synopses Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void link:#clang-mrdocs-swap-03[swap]( link:#clang-mrdocs-Error[Error]& lhs, link:#clang-mrdocs-Error[Error]& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-swap-03[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void link:#clang-mrdocs-swap-0c[swap]( link:#clang-mrdocs-Expected-03[Expected]& x, link:#clang-mrdocs-Expected-03[Expected]& y) noexcept(noexcept(x.swap(y))) requires requires { x.swap(y); }; ---- [.small]#link:#clang-mrdocs-swap-0c[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void link:#clang-mrdocs-swap-0d[swap]( link:#clang-mrdocs-Polymorphic[Polymorphic]& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic]& rhs) noexcept; ---- [.small]#link:#clang-mrdocs-swap-0d[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void link:#clang-mrdocs-swap-07[swap]( link:#clang-mrdocs-Unexpected-02[Unexpected]& x, link:#clang-mrdocs-Unexpected-02[Unexpected]& y) noexcept(noexcept(x.swap(y))) requires std::is_swappable_v<E>; ---- [.small]#link:#clang-mrdocs-swap-07[_» more..._]# == Synopsis Declared in `<mrdocs/Support/Error.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void swap( link:#clang-mrdocs-Error[Error]& lhs, link:#clang-mrdocs-Error[Error]& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void swap( link:#clang-mrdocs-Expected-03[Expected]& x, link:#clang-mrdocs-Expected-03[Expected]& y) noexcept(noexcept(x.swap(y))) requires requires { x.swap(y); }; ---- == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void swap( link:#clang-mrdocs-Polymorphic[Polymorphic]& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic]& rhs) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr void swap( link:#clang-mrdocs-Unexpected-02[Unexpected]& x, link:#clang-mrdocs-Unexpected-02[Unexpected]& y) noexcept(noexcept(x.swap(y))) requires std::is_swappable_v<E>; ---- `tag_invoke` overloads == Synopses Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-04a[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-AutoKind[AutoKind] kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-04a[_» more..._]# Return the InfoKind from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-03f7[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-ExtractionMode[ExtractionMode] kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-03f7[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0ec[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-FileKind[FileKind] kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-0ec[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0af9[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-OperatorKind[OperatorKind] kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-0af9[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-070[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-QualifierKind[QualifierKind] kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-070[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-074[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-RecordKeyKind[RecordKeyKind] kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-074[_» more..._]# Return the ReferenceKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-06ef[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-ReferenceKind[ReferenceKind] kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-06ef[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0df[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TArgKind[TArgKind] kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-0df[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0b6[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TParamKeyKind[TParamKeyKind] kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-0b6[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-04f[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TypeKind[TypeKind] kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-04f[_» more..._]# Return the UsingClass as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-025[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-UsingClass[UsingClass] kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-025[_» more..._]# Return the AccessKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-009[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-AccessKind[AccessKind] const kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-009[_» more..._]# Return the ConstexprKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0aa[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-ConstexprKind[ConstexprKind] const kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-0aa[_» more..._]# Return the FunctionClass from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-03b[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-FunctionClass[FunctionClass] const kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-03b[_» more..._]# Return the InfoKind from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0db[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-InfoKind[InfoKind] const kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-0db[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0b5[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NameKind[NameKind] const kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-0b5[_» more..._]# Return the StorageClassKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-044[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-StorageClassKind[StorageClassKind] const kind); ---- [.small]#link:#clang-mrdocs-tag_invoke-044[_» more..._]# Return the ExplicitInfo as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-01b[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-ExplicitInfo[ExplicitInfo] const& I); ---- [.small]#link:#clang-mrdocs-tag_invoke-01b[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-041[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Location[Location] const& loc); ---- [.small]#link:#clang-mrdocs-tag_invoke-041[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-005[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NoexceptInfo[NoexceptInfo] const& info); ---- [.small]#link:#clang-mrdocs-tag_invoke-005[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-026e[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-SourceInfo[SourceInfo] const& I); ---- [.small]#link:#clang-mrdocs-tag_invoke-026e[_» more..._]# Convert SymbolID to dom::Value string in the DOM using toBase16 [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0ae[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-SymbolID[SymbolID] const& id); ---- [.small]#link:#clang-mrdocs-tag_invoke-0ae[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0d16[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-BaseInfo[BaseInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0d16[_» more..._]# Map the ConceptInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0b9[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-ConceptInfo[ConceptInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0b9[_» more..._]# Map the EnumConstantInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-04d[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-EnumConstantInfo[EnumConstantInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-04d[_» more..._]# Map the EnumInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-087e[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-EnumInfo[EnumInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-087e[_» more..._]# Map the FriendInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-03c[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-FriendInfo[FriendInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-03c[_» more..._]# Map the FunctionInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-06f[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-FunctionInfo[FunctionInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-06f[_» more..._]# Map the GuideInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0f9[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-GuideInfo[GuideInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0f9[_» more..._]# Return the Info as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0ea[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Info[Info] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0ea[_» more..._]# Return the link:#clang-mrdocs-Javadoc[`Javadoc`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0f8[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Javadoc[Javadoc] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0f8[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-02f[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NameInfo[NameInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-02f[_» more..._]# Map the NamespaceAliasInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-03f5[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NamespaceAliasInfo[NamespaceAliasInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-03f5[_» more..._]# Map the NamespaceInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-065[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NamespaceInfo[NamespaceInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-065[_» more..._]# Map the NamespaceTranche to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-09eb[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NamespaceTranche[NamespaceTranche] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-09eb[_» more..._]# Map the OverloadsInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-09e7[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-OverloadsInfo[OverloadsInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-09e7[_» more..._]# Return the Param as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-099[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Param[Param] const& p, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-099[_» more..._]# Map the RecordInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-060[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-RecordInfo[RecordInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-060[_» more..._]# Map the RecordInterface to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0876[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-RecordInterface[RecordInterface] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0876[_» more..._]# Map the RecordTranche to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0b1[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-RecordTranche[RecordTranche] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0b1[_» more..._]# Convert SymbolID to dom::Value object in the DOM using Corpus [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0d66[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-SymbolID[SymbolID] const& id, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0d66[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0f6[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TArg[TArg] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0f6[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0de[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TParam[TParam] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0de[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0d63[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TemplateInfo[TemplateInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0d63[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-010[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TypeInfo[TypeInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-010[_» more..._]# Map the TypedefInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-001[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TypedefInfo[TypedefInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-001[_» more..._]# Map the UsingInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-02b[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-UsingInfo[UsingInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-02b[_» more..._]# Map the VariableInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-008[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-VariableInfo[VariableInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-008[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0ed[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0ed[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-01c[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Polymorphic[Polymorphic<TArg>] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-01c[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0d4[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Polymorphic[Polymorphic<TParam>] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0d4[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-026a[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-026a[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0c0[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, std::optional<TemplateInfo> const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0c0[_» more..._]# Convert SymbolID pointers to dom::Value or null. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void link:#clang-mrdocs-tag_invoke-0d17[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, std::unique_ptr<SymbolID> const& t, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0d17[_» more..._]# Map the Info to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-00a[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, link:#clang-mrdocs-Info[Info] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-00a[_» more..._]# Map a NamespaceTranche to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-003[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, link:#clang-mrdocs-NamespaceTranche[NamespaceTranche] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-003[_» more..._]# Map a RecordInterface to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-09fd[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, link:#clang-mrdocs-RecordInterface[RecordInterface] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const*); ---- [.small]#link:#clang-mrdocs-tag_invoke-09fd[_» more..._]# Map a RecordTranche to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-0229[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, link:#clang-mrdocs-RecordTranche[RecordTranche] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0229[_» more..._]# Map a ConceptInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-0e8[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-ConceptInfo[ConceptInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0e8[_» more..._]# Map a EnumConstantInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-07b[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-EnumConstantInfo[EnumConstantInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-07b[_» more..._]# Map a EnumInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-068[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-EnumInfo[EnumInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-068[_» more..._]# Map a FriendInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-0c5[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-FriendInfo[FriendInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0c5[_» more..._]# Map a FunctionInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-0f0[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-FunctionInfo[FunctionInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0f0[_» more..._]# Map a GuideInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-022e[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-GuideInfo[GuideInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-022e[_» more..._]# Map the link:#clang-mrdocs-Javadoc[`Javadoc`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-07f[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-Javadoc[Javadoc] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-07f[_» more..._]# Map a NamespaceAliasInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-0a1[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-NamespaceAliasInfo[NamespaceAliasInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0a1[_» more..._]# Map a NamespaceInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-0fc[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-NamespaceInfo[NamespaceInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0fc[_» more..._]# Map a OverloadsInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-06eb[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-OverloadsInfo[OverloadsInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-06eb[_» more..._]# Map a RecordInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-031[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-RecordInfo[RecordInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-031[_» more..._]# Map a TypedefInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-047[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-TypedefInfo[TypedefInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-047[_» more..._]# Map a UsingInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-07e[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-UsingInfo[UsingInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-07e[_» more..._]# Map a VariableInfo to a dom::Object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void link:#clang-mrdocs-tag_invoke-0c8[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-VariableInfo[VariableInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0c8[_» more..._]# Map the Polymorphic Info to a link:#clang-mrdocs-dom-Object[`dom::Object`]. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class IO, link:#clang-mrdocs-polymorphic_storage_for[polymorphic_storage_for<Info>] PolymorphicInfo> requires std::derived_from<PolymorphicInfo, Info> void link:#clang-mrdocs-tag_invoke-066[tag_invoke]( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, PolymorphicInfo const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-066[_» more..._]# Map the Polymorphic Info as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class IO, link:#clang-mrdocs-polymorphic_storage_for[polymorphic_storage_for<Info>] InfoTy> requires std::derived_from<InfoTy, Info> void link:#clang-mrdocs-tag_invoke-0af6[tag_invoke]( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], IO& io, InfoTy const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- [.small]#link:#clang-mrdocs-tag_invoke-0af6[_» more..._]# == Parameters [cols=2] |=== | Name | Description | *v* | The output value. | *kind* | The UsingClass to convert. | *I* | The ExplicitInfo to convert. | *domCorpus* | The DomCorpus used to resolve references. | *t* | The SymbolID pointer to convert. If null, the dom::Value is set to null. | *io* | The output parameter to receive the dom::Object. |=== == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-AutoKind[AutoKind] kind); ---- Return the InfoKind from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/ExtractionMode.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-ExtractionMode[ExtractionMode] kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | Determine why a symbol is extracted |=== == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-FileKind[FileKind] kind); ---- == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-OperatorKind[OperatorKind] kind); ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-QualifierKind[QualifierKind] kind); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-RecordKeyKind[RecordKeyKind] kind); ---- Return the ReferenceKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-ReferenceKind[ReferenceKind] kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | Reference type kinds |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TArgKind[TArgKind] kind); ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TParamKeyKind[TParamKeyKind] kind); ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TypeKind[TypeKind] kind); ---- Return the UsingClass as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Info/Using.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-UsingClass[UsingClass] kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | The output value. | *kind* | The UsingClass to convert. |=== Return the AccessKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-AccessKind[AccessKind] const kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | Access specifier. |=== Return the ConstexprKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-ConstexprKind[ConstexprKind] const kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | `constexpr`/`consteval` specifier kinds |=== Return the FunctionClass from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-FunctionClass[FunctionClass] const kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | Function classifications |=== Return the InfoKind from a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-InfoKind[InfoKind] const kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | Info variant discriminator |=== == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NameKind[NameKind] const kind); ---- Return the StorageClassKind as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-StorageClassKind[StorageClassKind] const kind); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *kind* | Storage class kinds |=== Return the ExplicitInfo as a link:#clang-mrdocs-dom-Value[`dom::Value`] string. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-ExplicitInfo[ExplicitInfo] const& I); ---- == Parameters [cols=2] |=== | Name | Description | *v* | The output parameter to receive the dom::Value. | *I* | The ExplicitInfo to convert. |=== == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Location[Location] const& loc); ---- == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NoexceptInfo[NoexceptInfo] const& info); ---- == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-SourceInfo[SourceInfo] const& I); ---- Convert SymbolID to dom::Value string in the DOM using toBase16 == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-SymbolID[SymbolID] const& id); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *id* | A unique identifier for a symbol. |=== == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-BaseInfo[BaseInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- Map the ConceptInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Concept.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-ConceptInfo[ConceptInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Info for concepts. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Map the EnumConstantInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/EnumConstant.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-EnumConstantInfo[EnumConstantInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Info for enum constants. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Map the EnumInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Enum.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-EnumInfo[EnumInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | The output parameter to receive the dom::Value. | *I* | The EnumInfo to convert. | *domCorpus* | The DomCorpus used to resolve references. |=== Map the FriendInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Friend.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-FriendInfo[FriendInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Info for friend declarations. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Map the FunctionInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-FunctionInfo[FunctionInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | The output parameter to receive the dom::Value. | *I* | The FunctionInfo to convert. | *domCorpus* | The DomCorpus used to resolve references. |=== Map the GuideInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Guide.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-GuideInfo[GuideInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Info for deduction guides. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the Info as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Info[Info] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Base class with common properties of all symbols | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the link:#clang-mrdocs-Javadoc[`Javadoc`] as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Javadoc[Javadoc] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A processed Doxygen‐style comment attached to a declaration. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NameInfo[NameInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- Map the NamespaceAliasInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/NamespaceAlias.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NamespaceAliasInfo[NamespaceAliasInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Info for namespace aliases. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Map the NamespaceInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NamespaceInfo[NamespaceInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Describes a namespace. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Map the NamespaceTranche to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-NamespaceTranche[NamespaceTranche] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | The members of a Namespace | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Map the OverloadsInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-OverloadsInfo[OverloadsInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Represents a set of function overloads. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Return the Param as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Param[Param] const& p, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *p* | Represents a single function parameter | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Map the RecordInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-RecordInfo[RecordInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Metadata for struct, class, or union. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Map the RecordInterface to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-RecordInterface[RecordInterface] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | The aggregated interface for a given struct, class, or union. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Map the RecordTranche to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-RecordTranche[RecordTranche] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A group of members that have the same access specifier. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Convert SymbolID to dom::Value object in the DOM using Corpus == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-SymbolID[SymbolID] const& id, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *id* | A unique identifier for a symbol. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TArg[TArg] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TParam[TParam] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TemplateInfo[TemplateInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TypeInfo[TypeInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- Map the TypedefInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Typedef.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-TypedefInfo[TypedefInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | The output parameter to receive the dom::Value. | *I* | The TypedefInfo to convert. | *domCorpus* | The DomCorpus used to resolve references. |=== Map the UsingInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Using.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-UsingInfo[UsingInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | Info for using declarations. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== Map the VariableInfo to a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-VariableInfo[VariableInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | A variant container for any kind of Dom value. | *I* | A variable. | *domCorpus* | Front‐end factory for producing Dom nodes. |=== == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Polymorphic[Polymorphic<TArg>] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Polymorphic[Polymorphic<TParam>] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, std::optional<TemplateInfo> const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- Convert SymbolID pointers to dom::Value or null. == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], link:#clang-mrdocs-dom-Value[dom::Value]& v, std::unique_ptr<SymbolID> const& t, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *v* | The output parameter to receive the dom::Value. | *t* | The SymbolID pointer to convert. If null, the dom::Value is set to null. | *domCorpus* | The DomCorpus to use, or nullptr. If null, the SymbolID is converted to a base16 string. |=== Map the Info to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, link:#clang-mrdocs-Info[Info] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *io* | The output parameter to receive the dom::Object. | *I* | The Info to convert. | *domCorpus* | The DomCorpus used to resolve references. |=== Map a NamespaceTranche to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, link:#clang-mrdocs-NamespaceTranche[NamespaceTranche] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *io* | The IO object to use for mapping. | *I* | The NamespaceTranche to map. | *domCorpus* | The DomCorpus used to create |=== Map a RecordInterface to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, link:#clang-mrdocs-RecordInterface[RecordInterface] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const*); ---- == Parameters [cols=2] |=== | Name | Description | *io* | The output parameter to receive the dom::Object. | *I* | The RecordInterface to convert. |=== Map a RecordTranche to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, link:#clang-mrdocs-RecordTranche[RecordTranche] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *io* | The output parameter to receive the dom::Object. | *I* | The RecordTranche to convert. | *domCorpus* | The DomCorpus used to resolve references. |=== Map a ConceptInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Concept.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-ConceptInfo[ConceptInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The ConceptInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map a EnumConstantInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/EnumConstant.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-EnumConstantInfo[EnumConstantInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The EnumConstantInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map a EnumInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Enum.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-EnumInfo[EnumInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The EnumInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map a FriendInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Friend.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-FriendInfo[FriendInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The FriendInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map a FunctionInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-FunctionInfo[FunctionInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The FunctionInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map a GuideInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Guide.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-GuideInfo[GuideInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The GuideInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map the link:#clang-mrdocs-Javadoc[`Javadoc`] to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Javadoc.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-Javadoc[Javadoc] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag. | *io* | The output object. | *I* | The javadoc to map. | *domCorpus* | The DOM corpus, or nullptr. |=== Map a NamespaceAliasInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/NamespaceAlias.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-NamespaceAliasInfo[NamespaceAliasInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The NamespaceAliasInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map a NamespaceInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Namespace.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-NamespaceInfo[NamespaceInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The NamespaceInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map a OverloadsInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Overloads.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-OverloadsInfo[OverloadsInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The OverloadsInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map a RecordInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-RecordInfo[RecordInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The RecordInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map a TypedefInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Typedef.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-TypedefInfo[TypedefInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The TypedefInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map a UsingInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Using.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-UsingInfo[UsingInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The UsingInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map a VariableInfo to a dom::Object. == Synopsis Declared in `<mrdocs/Metadata/Info/Variable.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class IO> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag] t, IO& io, link:#clang-mrdocs-VariableInfo[VariableInfo] const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *t* | The tag type. | *io* | The IO object to use for mapping. | *I* | The VariableInfo to map. | *domCorpus* | The DomCorpus used to create |=== Map the Polymorphic Info to a link:#clang-mrdocs-dom-Object[`dom::Object`]. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class IO, link:#clang-mrdocs-polymorphic_storage_for[polymorphic_storage_for<Info>] PolymorphicInfo> requires std::derived_from<PolymorphicInfo, Info> void tag_invoke( link:#clang-mrdocs-dom-LazyObjectMapTag[dom::LazyObjectMapTag], IO& io, PolymorphicInfo const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *io* | The output parameter to receive the dom::Object. | *I* | The polymorphic Info to convert. | *domCorpus* | The DomCorpus used to resolve references. |=== Map the Polymorphic Info as a link:#clang-mrdocs-dom-Value[`dom::Value`] object. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class IO, link:#clang-mrdocs-polymorphic_storage_for[polymorphic_storage_for<Info>] InfoTy> requires std::derived_from<InfoTy, Info> void tag_invoke( link:#clang-mrdocs-dom-ValueFromTag[dom::ValueFromTag], IO& io, InfoTy const& I, link:#clang-mrdocs-DomCorpus[DomCorpus] const* domCorpus); ---- == Parameters [cols=2] |=== | Name | Description | *io* | The output parameter to receive the dom::Value. | *I* | The polymorphic Info to convert. | *domCorpus* | The DomCorpus used to resolve references. |=== Convert a SymbolID to a string == Synopsis Declared in `<mrdocs/Metadata/SymbolID.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string toBase16Str(link:#clang-mrdocs-SymbolID[SymbolID] const& id); ---- == Return Value The base16 string representation of the SymbolID. == Parameters [cols=2] |=== | Name | Description | *id* | The SymbolID to convert. |=== == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string toCamelCase(std::string_view const input); ---- == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string toKebabCase(std::string_view const input); ---- == Synopses Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string link:#clang-mrdocs-toLowerCase-01[toLowerCase](std::string_view const s) noexcept; ---- [.small]#link:#clang-mrdocs-toLowerCase-01[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr char link:#clang-mrdocs-toLowerCase-0a[toLowerCase](char const c) noexcept; ---- [.small]#link:#clang-mrdocs-toLowerCase-0a[_» more..._]# == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string toLowerCase(std::string_view const s) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr char toLowerCase(char const c) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string toPascalCase(std::string_view const input); ---- == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string toSnakeCase(std::string_view const input); ---- `toString` overloads == Synopses Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-0d2[toString](link:#clang-mrdocs-AccessKind[AccessKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-0d2[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-051[toString](link:#clang-mrdocs-AutoKind[AutoKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-051[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-081[toString](link:#clang-mrdocs-ConstexprKind[ConstexprKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-081[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-0c[toString](link:#clang-mrdocs-ExplicitKind[ExplicitKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-0c[_» more..._]# Return the name of the InfoKind as a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view link:#clang-mrdocs-toString-06[toString](link:#clang-mrdocs-ExtractionMode[ExtractionMode] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-06[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view link:#clang-mrdocs-toString-00b[toString](link:#clang-mrdocs-FileKind[FileKind] kind); ---- [.small]#link:#clang-mrdocs-toString-00b[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-00d[toString](link:#clang-mrdocs-FunctionClass[FunctionClass] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-00d[_» more..._]# Convert a FundamentalTypeKind to a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view link:#clang-mrdocs-toString-0b7[toString](link:#clang-mrdocs-FundamentalTypeKind[FundamentalTypeKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-0b7[_» more..._]# Return the name of the InfoKind as a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-0b4b[toString](link:#clang-mrdocs-InfoKind[InfoKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-0b4b[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-0a[toString](link:#clang-mrdocs-NameKind[NameKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-0a[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-00f[toString](link:#clang-mrdocs-NoexceptKind[NoexceptKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-00f[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-01f7[toString](link:#clang-mrdocs-QualifierKind[QualifierKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-01f7[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-0b1[toString](link:#clang-mrdocs-RecordKeyKind[RecordKeyKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-0b1[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-083[toString](link:#clang-mrdocs-ReferenceKind[ReferenceKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-083[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-07[toString](link:#clang-mrdocs-StorageClassKind[StorageClassKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-07[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view link:#clang-mrdocs-toString-01c[toString](link:#clang-mrdocs-TArgKind[TArgKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-01c[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view link:#clang-mrdocs-toString-059[toString](link:#clang-mrdocs-TParamKeyKind[TParamKeyKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-059[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view link:#clang-mrdocs-toString-01f2[toString](link:#clang-mrdocs-TParamKind[TParamKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-01f2[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view link:#clang-mrdocs-toString-016[toString](link:#clang-mrdocs-TemplateSpecKind[TemplateSpecKind] kind); ---- [.small]#link:#clang-mrdocs-toString-016[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-010[toString](link:#clang-mrdocs-TypeKind[TypeKind] kind) noexcept; ---- [.small]#link:#clang-mrdocs-toString-010[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-toString-09[toString](link:#clang-mrdocs-NameInfo[NameInfo] const& N); ---- [.small]#link:#clang-mrdocs-toString-09[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-toString-0b4a[toString](link:#clang-mrdocs-TArg[TArg] const& arg) noexcept; ---- [.small]#link:#clang-mrdocs-toString-0b4a[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string link:#clang-mrdocs-toString-0d4[toString]( link:#clang-mrdocs-TypeInfo[TypeInfo] const& T, std::string_view Name = ""); ---- [.small]#link:#clang-mrdocs-toString-0d4[_» more..._]# Convert ExplicitInfo to a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-04[toString]( link:#clang-mrdocs-ExplicitInfo[ExplicitInfo] const& info, bool resolved = false, bool implicit = false); ---- [.small]#link:#clang-mrdocs-toString-04[_» more..._]# Convert NoexceptInfo to a string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] link:#clang-mrdocs-toString-0d1[toString]( link:#clang-mrdocs-NoexceptInfo[NoexceptInfo] const& info, bool resolved = false, bool implicit = false); ---- [.small]#link:#clang-mrdocs-toString-0d1[_» more..._]# == Return Value * The string representation of the kind * The string representation of the explicit‐specifier. * The string representation of the noexcept‐specifier. == Parameters [cols=2] |=== | Name | Description | *info* | The explicit‐specifier information. | *resolved* | If true, the operand is not shown when the explicit‐specifier is non‐dependent. | *implicit* | If true, implicit explicit‐specifiers are shown. |=== == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-AccessKind[AccessKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-AutoKind[AutoKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-ConstexprKind[ConstexprKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-ExplicitKind[ExplicitKind] kind) noexcept; ---- Return the name of the InfoKind as a string. == Synopsis Declared in `<mrdocs/Metadata/ExtractionMode.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view toString(link:#clang-mrdocs-ExtractionMode[ExtractionMode] kind) noexcept; ---- == Return Value the name of the InfoKind as a string. == Parameters [cols=2] |=== | Name | Description | *kind* | Determine why a symbol is extracted |=== == Synopsis Declared in `<mrdocs/Metadata/Source.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view toString(link:#clang-mrdocs-FileKind[FileKind] kind); ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Function.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-FunctionClass[FunctionClass] kind) noexcept; ---- Convert a FundamentalTypeKind to a string. == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view toString(link:#clang-mrdocs-FundamentalTypeKind[FundamentalTypeKind] kind) noexcept; ---- == Description This function converts a FundamentalTypeKind to the shortest canonical string representing the type. == Return Value The string representation of the kind == Parameters [cols=2] |=== | Name | Description | *kind* | Categorically describes a fundamental type. |=== Return the name of the InfoKind as a string. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-InfoKind[InfoKind] kind) noexcept; ---- == Return Value the name of the InfoKind as a string. == Parameters [cols=2] |=== | Name | Description | *kind* | Info variant discriminator |=== == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-NameKind[NameKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-NoexceptKind[NoexceptKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-QualifierKind[QualifierKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Info/Record.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-RecordKeyKind[RecordKeyKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-ReferenceKind[ReferenceKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-StorageClassKind[StorageClassKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view toString(link:#clang-mrdocs-TArgKind[TArgKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view toString(link:#clang-mrdocs-TParamKeyKind[TParamKeyKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view toString(link:#clang-mrdocs-TParamKind[TParamKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string_view toString(link:#clang-mrdocs-TemplateSpecKind[TemplateSpecKind] kind); ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString(link:#clang-mrdocs-TypeKind[TypeKind] kind) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string toString(link:#clang-mrdocs-NameInfo[NameInfo] const& N); ---- == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string toString(link:#clang-mrdocs-TArg[TArg] const& arg) noexcept; ---- == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string toString( link:#clang-mrdocs-TypeInfo[TypeInfo] const& T, std::string_view Name = ""); ---- Convert ExplicitInfo to a string. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString( link:#clang-mrdocs-ExplicitInfo[ExplicitInfo] const& info, bool resolved = false, bool implicit = false); ---- == Return Value The string representation of the explicit‐specifier. == Parameters [cols=2] |=== | Name | Description | *info* | The explicit‐specifier information. | *resolved* | If true, the operand is not shown when the explicit‐specifier is non‐dependent. | *implicit* | If true, implicit explicit‐specifiers are shown. |=== Convert NoexceptInfo to a string. == Synopsis Declared in `<mrdocs/Metadata/Specifiers.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-dom-String[dom::String] toString( link:#clang-mrdocs-NoexceptInfo[NoexceptInfo] const& info, bool resolved = false, bool implicit = false); ---- == Return Value The string representation of the noexcept‐specifier. == Parameters [cols=2] |=== | Name | Description | *info* | The noexcept‐specifier information. | *resolved* | If true, the operand is not shown when the exception specification is non‐dependent. | *implicit* | If true, implicit exception specifications are shown. |=== == Synopses Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string link:#clang-mrdocs-toUpperCase-00[toUpperCase](std::string_view const s) noexcept; ---- [.small]#link:#clang-mrdocs-toUpperCase-00[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr char link:#clang-mrdocs-toUpperCase-0b[toUpperCase](char const c) noexcept; ---- [.small]#link:#clang-mrdocs-toUpperCase-0b[_» more..._]# == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string toUpperCase(std::string_view const s) noexcept; ---- == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr char toUpperCase(char const c) noexcept; ---- Return the value as its underlying type. == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Enum> requires std::is_enum_v<Enum> constexpr std::underlying_type_t<Enum> to_underlying(Enum value) noexcept; ---- == Return Value the value as its underlying type. == Parameters [cols=2] |=== | Name | Description | *value* | The enum value to convert |=== `trim` overloads == Synopses Declared in `<mrdocs/Support/String.hpp>` Return the substring without leading and trailing horizontal whitespace. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view link:#clang-mrdocs-trim-07[trim](std::string_view const s) noexcept; ---- [.small]#link:#clang-mrdocs-trim-07[_» more..._]# Return the substring without leading and trailing specified characters. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view link:#clang-mrdocs-trim-0d[trim]( std::string_view const s, std::string_view const chars) noexcept; ---- [.small]#link:#clang-mrdocs-trim-0d[_» more..._]# == Return Value The modified string. == Parameters [cols=2] |=== | Name | Description | *s* | The string to trim. | *chars* | The characters to remove. |=== Return the substring without leading and trailing horizontal whitespace. == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view trim(std::string_view const s) noexcept; ---- == Return Value The modified string. == Parameters [cols=2] |=== | Name | Description | *s* | The string to trim. |=== Return the substring without leading and trailing specified characters. == Synopsis Declared in `<mrdocs/Support/String.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr std::string_view trim( std::string_view const s, std::string_view const chars) noexcept; ---- == Return Value The modified string. == Parameters [cols=2] |=== | Name | Description | *s* | The string to trim. | *chars* | The characters to remove. |=== Invoke a function object with a type derived from Info == Synopses Declared in `<mrdocs/Metadata/Info.hpp>` Invoke a function object with a type derived from Info [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::derived_from<NameInfo> InfoTy, class Fn, class... Args> constexpr decltype(auto) link:#clang-mrdocs-visit-0e[visit]( InfoTy& info, Fn&& fn, Args...&&... args); ---- [.small]#link:#clang-mrdocs-visit-0e[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename TParamTy, typename F, typename... Args> requires std::derived_from<TParamTy, TParam> constexpr decltype(auto) link:#clang-mrdocs-visit-09[visit]( TParamTy& P, F&& f, Args...&&... args); ---- [.small]#link:#clang-mrdocs-visit-09[_» more..._]# == Return Value The result of calling the function object with the derived type == Parameters [cols=2] |=== | Name | Description | *info* | The Info object to visit | *fn* | The function object to call | *args* | Additional arguments to pass to the function object |=== Invoke a function object with a type derived from Info == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< std::derived_from<NameInfo> InfoTy, class Fn, class... Args> constexpr decltype(auto) visit( InfoTy& info, Fn&& fn, Args...&&... args); ---- == Description This function will invoke the function object `fn` with a type derived from `Info` as the first argument, followed by `args...`. The type of the first argument is determined by the `InfoKind` of the `Info` object. == Return Value The result of calling the function object with the derived type == Parameters [cols=2] |=== | Name | Description | *info* | The Info object to visit | *fn* | The function object to call | *args* | Additional arguments to pass to the function object |=== == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename TParamTy, typename F, typename... Args> requires std::derived_from<TParamTy, TParam> constexpr decltype(auto) visit( TParamTy& P, F&& f, Args...&&... args); ---- Write to output == Synopses Declared in `<mrdocs/Support/Handlebars.hpp>` Write to output [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> requires std::formattable<T, char> link:#clang-mrdocs-OutputRef[OutputRef]& link:#clang-mrdocs-operator_lshift-03[operator<<]( link:#clang-mrdocs-OutputRef[OutputRef]& os, T v); ---- [.small]#link:#clang-mrdocs-operator_lshift-03[_» more..._]# Write to output [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OutputRef[OutputRef]& link:#clang-mrdocs-operator_lshift-00[operator<<]( link:#clang-mrdocs-OutputRef[OutputRef]& os, char const* c); ---- [.small]#link:#clang-mrdocs-operator_lshift-00[_» more..._]# Write to output [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OutputRef[OutputRef]& link:#clang-mrdocs-operator_lshift-09[operator<<]( link:#clang-mrdocs-OutputRef[OutputRef]& os, char c); ---- [.small]#link:#clang-mrdocs-operator_lshift-09[_» more..._]# Write to output [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OutputRef[OutputRef]& link:#clang-mrdocs-operator_lshift-02[operator<<]( link:#clang-mrdocs-OutputRef[OutputRef]& os, std::string_view sv); ---- [.small]#link:#clang-mrdocs-operator_lshift-02[_» more..._]# == Return Value A reference to this object == Parameters [cols=2] |=== | Name | Description | *os* | The output stream reference | *v* | The character to write | *c* | The string to write | *sv* | The string to write |=== Write to output == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> requires std::formattable<T, char> link:#clang-mrdocs-OutputRef[OutputRef]& operator<<( link:#clang-mrdocs-OutputRef[OutputRef]& os, T v); ---- == Return Value A reference to this object == Parameters [cols=2] |=== | Name | Description | *os* | The output stream reference | *v* | The character to write |=== Write to output == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OutputRef[OutputRef]& operator<<( link:#clang-mrdocs-OutputRef[OutputRef]& os, char const* c); ---- == Return Value A reference to this object == Parameters [cols=2] |=== | Name | Description | *os* | The output stream reference | *c* | The string to write |=== Write to output == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OutputRef[OutputRef]& operator<<( link:#clang-mrdocs-OutputRef[OutputRef]& os, char c); ---- == Return Value A reference to this object == Parameters [cols=2] |=== | Name | Description | *os* | The output stream reference | *c* | The character to write |=== Write to output == Synopsis Declared in `<mrdocs/Support/Handlebars.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- link:#clang-mrdocs-OutputRef[OutputRef]& operator<<( link:#clang-mrdocs-OutputRef[OutputRef]& os, std::string_view sv); ---- == Return Value A reference to this object == Parameters [cols=2] |=== | Name | Description | *os* | The output stream reference | *sv* | The string to write |=== Equality operators == Synopses Declared in `<mrdocs/ADT/Polymorphic.hpp>` Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Base> requires detail::CanVisitCompare<Base> bool link:#clang-mrdocs-operator_eq-07[operator==]( link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& rhs); ---- [.small]#link:#clang-mrdocs-operator_eq-07[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Er> [[nodiscard]] constexpr bool link:#clang-mrdocs-operator_eq-04d[operator==]( link:#clang-mrdocs-Unexpected-02[Unexpected] const& x, link:#clang-mrdocs-Unexpected-02[Unexpected<Er>] const& y); ---- [.small]#link:#clang-mrdocs-operator_eq-04d[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class E2> constexpr bool link:#clang-mrdocs-operator_eq-0f[operator==]( link:#clang-mrdocs-Expected-03[Expected] const& x, link:#clang-mrdocs-Unexpected-02[Unexpected<E2>] const& e) noexcept(noexcept(bool(x.error() == e.error()))); ---- [.small]#link:#clang-mrdocs-operator_eq-0f[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> constexpr bool link:#clang-mrdocs-operator_eq-0e[operator==]( link:#clang-mrdocs-Expected-03[Expected] const& x, U const& v) noexcept(noexcept(bool(*x == v))); ---- [.small]#link:#clang-mrdocs-operator_eq-0e[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class E2> requires (!std::is_void_v<U>) constexpr bool link:#clang-mrdocs-operator_eq-0d[operator==]( link:#clang-mrdocs-Expected-03[Expected] const& x, link:#clang-mrdocs-Expected-03[Expected<U, E2>] const& y) noexcept(noexcept(bool(*x == *y)) && noexcept(bool(x.error() == y.error()))); ---- [.small]#link:#clang-mrdocs-operator_eq-0d[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class E2> requires std::is_void_v<U> constexpr bool link:#clang-mrdocs-operator_eq-04c[operator==]( link:#clang-mrdocs-Expected-0c[Expected] const& x, link:#clang-mrdocs-Expected-03[Expected<U, E2>] const& y) noexcept(noexcept(bool(x.error() == y.error()))); ---- [.small]#link:#clang-mrdocs-operator_eq-04c[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-operator_eq-032[operator==]( link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& rhs); ---- [.small]#link:#clang-mrdocs-operator_eq-032[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-operator_eq-02e[operator==]( link:#clang-mrdocs-Polymorphic[Polymorphic<TParam>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<TParam>] const& rhs); ---- [.small]#link:#clang-mrdocs-operator_eq-02e[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-operator_eq-02c[operator==]( std::optional<TemplateInfo> const& lhs, std::optional<TemplateInfo> const& rhs); ---- [.small]#link:#clang-mrdocs-operator_eq-02c[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool link:#clang-mrdocs-operator_eq-03a[operator==]( link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] const& rhs); ---- [.small]#link:#clang-mrdocs-operator_eq-03a[_» more..._]# Equality operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool link:#clang-mrdocs-operator_eq-01[operator==]( link:#clang-mrdocs-ParseResult[ParseResult] const& lhs, link:#clang-mrdocs-ParseResult[ParseResult] const& rhs) = default; ---- [.small]#link:#clang-mrdocs-operator_eq-01[_» more..._]# Equality operator == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Base> requires detail::CanVisitCompare<Base> bool operator==( link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& rhs); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Er> [[nodiscard]] constexpr bool operator==( link:#clang-mrdocs-Unexpected-02[Unexpected] const& x, link:#clang-mrdocs-Unexpected-02[Unexpected<Er>] const& y); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *x* | The left operand | *y* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class E2> constexpr bool operator==( link:#clang-mrdocs-Expected-03[Expected] const& x, link:#clang-mrdocs-Unexpected-02[Unexpected<E2>] const& e) noexcept(noexcept(bool(x.error() == e.error()))); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *x* | The left operand | *e* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class U> constexpr bool operator==( link:#clang-mrdocs-Expected-03[Expected] const& x, U const& v) noexcept(noexcept(bool(*x == v))); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *x* | The left operand | *v* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class E2> requires (!std::is_void_v<U>) constexpr bool operator==( link:#clang-mrdocs-Expected-03[Expected] const& x, link:#clang-mrdocs-Expected-03[Expected<U, E2>] const& y) noexcept(noexcept(bool(*x == *y)) && noexcept(bool(x.error() == y.error()))); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *x* | The left operand | *y* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class E2> requires std::is_void_v<U> constexpr bool operator==( link:#clang-mrdocs-Expected-0c[Expected] const& x, link:#clang-mrdocs-Expected-03[Expected<U, E2>] const& y) noexcept(noexcept(bool(x.error() == y.error()))); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *x* | The left operand | *y* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& rhs); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( link:#clang-mrdocs-Polymorphic[Polymorphic<TParam>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<TParam>] const& rhs); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( std::optional<TemplateInfo> const& lhs, std::optional<TemplateInfo> const& rhs); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Metadata/Name.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool operator==( link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] const& rhs); ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Equality operator == Synopsis Declared in `<mrdocs/Support/Parse.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr bool operator==( link:#clang-mrdocs-ParseResult[ParseResult] const& lhs, link:#clang-mrdocs-ParseResult[ParseResult] const& rhs) = default; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Three‐way comparison operators == Synopses Declared in `<mrdocs/Metadata/Name.hpp>` Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Base> requires detail::CanVisitCompare<Base> auto link:#clang-mrdocs-operator_3way-0d[operator<=>]( link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& rhs); ---- [.small]#link:#clang-mrdocs-operator_3way-0d[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-operator_3way-091b[operator<=>]( link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] const& rhs); ---- [.small]#link:#clang-mrdocs-operator_3way-091b[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-operator_3way-0f3[operator<=>]( link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& rhs); ---- [.small]#link:#clang-mrdocs-operator_3way-0f3[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-operator_3way-0916[operator<=>]( link:#clang-mrdocs-Polymorphic[Polymorphic<TArg>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<TArg>] const& rhs); ---- [.small]#link:#clang-mrdocs-operator_3way-0916[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering link:#clang-mrdocs-operator_3way-05[operator<=>]( link:#clang-mrdocs-Polymorphic[Polymorphic<TParam>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<TParam>] const& rhs); ---- [.small]#link:#clang-mrdocs-operator_3way-05[_» more..._]# Three‐way comparison operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto link:#clang-mrdocs-operator_3way-0a[operator<=>]( std::optional<TemplateInfo> const& lhs, std::optional<TemplateInfo> const& rhs); ---- [.small]#link:#clang-mrdocs-operator_3way-0a[_» more..._]# Three‐way comparison operator == Synopsis Declared in `<mrdocs/ADT/Polymorphic.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Base> requires detail::CanVisitCompare<Base> auto operator<=>( link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<Base>] const& rhs); ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>( link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<NameInfo>] const& rhs); ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Type.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>( link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<TypeInfo>] const& rhs); ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>( link:#clang-mrdocs-Polymorphic[Polymorphic<TArg>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<TArg>] const& rhs); ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::strong_ordering operator<=>( link:#clang-mrdocs-Polymorphic[Polymorphic<TParam>] const& lhs, link:#clang-mrdocs-Polymorphic[Polymorphic<TParam>] const& rhs); ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== Three‐way comparison operator == Synopsis Declared in `<mrdocs/Metadata/Template.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto operator<=>( std::optional<TemplateInfo> const& lhs, std::optional<TemplateInfo> const& rhs); ---- == Return Value The relative order of the objects == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- inline constexpr link:#clang-mrdocs-unexpect_t[unexpect_t] unexpect = unexpect{}; ---- Concept to determine if there's a parse function for a type. == Synopsis Declared in `<mrdocs/Support/Parse.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> concept HasParse = requires( char const* first, char const* last, T& value) { { parse(first, last, value) } ‐> std::same_as<ParseResult>; }; ---- == Description This concept checks if a type `T` has a parse function with the signature: [,cpp] ---- ParseResult parse( char const* first, char const* last, T& value); ---- A concept for types that have `Info` members. == Synopsis Declared in `<mrdocs/Metadata/Info.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class InfoTy> concept InfoParent = requires(InfoTy const& I) { { allMembers(I) } ‐> range_of<SymbolID>; }; ---- == Description In most cases `T` is another `Info` type that has a `Members` member which is a range of `SymbolID` values. Determine if a type is dereferenceable == Synopsis Declared in `<mrdocs/Support/Concepts.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> concept dereferenceable = requires(T const& t) { { static_cast<bool>(t) }; { *t }; }; ---- == Description This concept checks if a type can be dereferenced to a value it represents and converted to a boolean value that represents if the object is in a valid state. Examples of such types are std::optional, std::unique_ptr, std::shared_ptr, Polymorphic, pointers, etc. Concept to check if a type is pair‐like == Synopsis Declared in `<mrdocs/Support/Concepts.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> concept pair_like = tuple_like<T> && (std::tuple_size<std::remove_cvref_t<T>>::value == 2); ---- == Description This concept checks if a type is tuple‐like and has exactly two elements. Examples of such types are std::pair, std::array with two elements, and user‐defined types that provide specializations for std::tuple_size and std::tuple_element with exactly two elements. Concept to check if a type is representing a polymorphic storage == Synopsis Declared in `<mrdocs/Support/Concepts.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class Base> concept polymorphic_storage_for = requires(T const& t) { { *t } ‐> std::convertible_to<Base const&>; { t.operator‐>() } ‐> std::convertible_to<Base const*>; }; ---- == Description This concept checks if a type is used to store derived objects of a base class. Examples of such types are std::unique_ptr, std::shared_ptr, Polymorphic, etc. The `get()` function might not always be available, but `operator and `operator‐>` should be available and return a reference to the Base class. Concept to check if a type is a range of T == Synopsis Declared in `<mrdocs/Support/Concepts.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class Range, class T> concept range_of = std::ranges::range<Range> && std::same_as<std::ranges::range_value_t<Range>, T>; ---- Concept to check if a range is a range of tuple‐like elements == Synopsis Declared in `<mrdocs/Support/Concepts.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Range> concept range_of_tuple_like = std::ranges::range<Range> && tuple_like<std::ranges::range_value_t<Range>>; ---- == Description This concept checks if a type is a range and all its elements are tuple‐like. Examples of such types are std::vector<std::tuple<...>>, std::list<std::pair<...>>, and user‐defined types that provide specializations for std::tuple_size and std::tuple_element for their element type. Concept to check if a type is tuple‐like == Synopsis Declared in `<mrdocs/Support/Concepts.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> concept tuple_like = detail::has_tuple_size<T>::value && detail::all_tuple_elements<T>::value; ---- == Description This concept checks if a type has a specialization of std::tuple_size and std::tuple_element for all elements in the range [0, N), where N is the value of std::tuple_size. Examples of such types are std::tuple, std::pair, std::array, and user‐defined types that provide specializations for std::tuple_size and std::tuple_element. == Synopsis Declared in `<mrdocs/Support/RangeFor.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class Container> link:#clang-mrdocs-RangeFor-07[RangeFor<Container>](Container const&) -> link:#clang-mrdocs-RangeFor-07[RangeFor<Container>]; ---- == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> link:#clang-mrdocs-ScopeExit-04[ScopeExit<F>](F) -> link:#clang-mrdocs-ScopeExit-04[ScopeExit<F>]; ---- == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> link:#clang-mrdocs-ScopeExitRestore-05[ScopeExitRestore<T>](T&) -> link:#clang-mrdocs-ScopeExitRestore-05[ScopeExitRestore<T>]; ---- == Synopsis Declared in `<mrdocs/Support/ScopeExit.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, std::convertible_to<T> T2> link:#clang-mrdocs-ScopeExitRestore-05[ScopeExitRestore<T>]( T&, T2) -> link:#clang-mrdocs-ScopeExitRestore-05[ScopeExitRestore<T>]; ---- == Synopsis Declared in `<mrdocs/Support/Expected.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class E> link:#clang-mrdocs-Unexpected-02[Unexpected<E>](E) -> link:#clang-mrdocs-Unexpected-02[Unexpected<E>]; ---- == Synopsis Declared in `<mrdocs/Support/source_location.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using std::source_location; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#