}
// Operators:
- //@{
+ ///@{
/// Return new complex value @a x plus @a y.
template<typename _Tp>
inline _GLIBCXX20_CONSTEXPR complex<_Tp>
__r += __x;
return __r;
}
- //@}
+ ///@}
- //@{
+ ///@{
/// Return new complex value @a x minus @a y.
template<typename _Tp>
inline _GLIBCXX20_CONSTEXPR complex<_Tp>
__r += __x;
return __r;
}
- //@}
+ ///@}
- //@{
+ ///@{
/// Return new complex value @a x times @a y.
template<typename _Tp>
inline _GLIBCXX20_CONSTEXPR complex<_Tp>
__r *= __x;
return __r;
}
- //@}
+ ///@}
- //@{
+ ///@{
/// Return new complex value @a x divided by @a y.
template<typename _Tp>
inline _GLIBCXX20_CONSTEXPR complex<_Tp>
__r /= __y;
return __r;
}
- //@}
+ ///@}
/// Return @a x.
template<typename _Tp>
operator-(const complex<_Tp>& __x)
{ return complex<_Tp>(-__x.real(), -__x.imag()); }
- //@{
+ ///@{
/// Return true if @a x is equal to @a y.
template<typename _Tp>
inline _GLIBCXX_CONSTEXPR bool
inline _GLIBCXX_CONSTEXPR bool
operator==(const _Tp& __x, const complex<_Tp>& __y)
{ return __x == __y.real() && _Tp() == __y.imag(); }
- //@}
+ ///@}
- //@{
+ ///@{
/// Return false if @a x is equal to @a y.
template<typename _Tp>
inline _GLIBCXX_CONSTEXPR bool
operator!=(const _Tp& __x, const complex<_Tp>& __y)
{ return __x != __y.real() || _Tp() != __y.imag(); }
#endif
- //@}
+ ///@}
/// Extraction operator for complex values.
template<typename _Tp, typename _CharT, class _Traits>
#endif
#endif
- // @} group complex_numbers
+ /// @} group complex_numbers
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace