You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example code (copy paste into a file and run cldoc on it, works as is):
#include<type_traits>template <class... Ts> structlist;
// A list of types <Ts...>//// @Ts... types in the listtemplate <class... Ts> structlist
{
// @return size of the liststaticconstexpr std::size_tsize() { returnsizeof...(Ts); }
};
This generates the following documentation:
Structures
list<Ts, Ts> // A list of types <Ts...>
Then when clicking on list:
Struct list<Ts, Ts>
A list of types <Ts...>
Template Parameters
Ts
Ts
Member Functions
static
size_t
size ( )
Size of the list
return
size of the list
The following is (in my opinion) wrong (each of these should be a separate issue):
It should be list<Ts...>,
the reference for <Ts...> in the comment should work
the documentation for the template parameter pack should work
constexpr is not documented, IMO the cleanest is to just present the function signature as is:
static constexpr size_t size();
The text was updated successfully, but these errors were encountered:
Example code (copy paste into a file and run cldoc on it, works as is):
This generates the following documentation:
Then when clicking on list:
The following is (in my opinion) wrong (each of these should be a separate issue):
list<Ts...>
,<Ts...>
in the comment should workThe text was updated successfully, but these errors were encountered: