DoxyPress  1.7.0
Use Cases

This following sections cover a variety of topics.

Anonymous Enum

The sample code below shows how to properly document an anonymous enum. The inclusion of the comment just before the enum declaration relates to the enum data type. If this comment is found an entry in the Public Types will be added. Otherwise only the value will be documented.

class Sample
{
public:
/// Documentation for an anonymous enum
enum { peach };
};
/*!
\\var Sample::peach
Documentation for an element of an anonymous enum
*/