mrdocs::isMoveConstructor

Check whether a function is a move constructor.

Synopsis

bool
isMoveConstructor(FunctionSymbol const& func);

Description

A move constructor is a non‐template constructor whose first parameter is an rvalue reference to the possibly cv‐qualified record type, with all remaining parameters having defaults ([class.copy.ctor]).

Return Value

Whether func is a move constructor.

Parameters

Name Description

func

The function to check.

Created with MrDocs