mrdocs::isDefaultConstructor

Check whether a function is a default constructor.

Synopsis

bool
isDefaultConstructor(FunctionSymbol const& func);

Description

A default constructor is a constructor for which each parameter that is not a function parameter pack has a default argument (including the case of a constructor with no parameters) ([class.default.ctor]).

Return Value

Whether func is a default constructor.

Parameters

Name Description

func

The function to check.

Created with MrDocs