Skip to content

mp_units::sqrt

Computes the square root of a reference

Synopsis

Declared in <mp-units/framework/reference.h>

template<std::same_as<reference> R>
[[nodiscard]] consteval /* implementation-defined */ sqrt(R);

Note

This function is a hidden friend of reference, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

Note

The return value should not be discarded.