Skip to content

Commit 784f8c9

Browse files
committed
[complex{,.special,.members}] Use injected-class-name in class definitions and itemdecls
1 parent 877918f commit 784f8c9

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

source/numerics.tex

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -401,18 +401,18 @@
401401
constexpr T imag() const;
402402
constexpr void imag(T);
403403

404-
constexpr complex<T>& operator= (const T&);
405-
constexpr complex<T>& operator+=(const T&);
406-
constexpr complex<T>& operator-=(const T&);
407-
constexpr complex<T>& operator*=(const T&);
408-
constexpr complex<T>& operator/=(const T&);
404+
constexpr complex& operator= (const T&);
405+
constexpr complex& operator+=(const T&);
406+
constexpr complex& operator-=(const T&);
407+
constexpr complex& operator*=(const T&);
408+
constexpr complex& operator/=(const T&);
409409

410410
constexpr complex& operator=(const complex&);
411-
template<class X> constexpr complex<T>& operator= (const complex<X>&);
412-
template<class X> constexpr complex<T>& operator+=(const complex<X>&);
413-
template<class X> constexpr complex<T>& operator-=(const complex<X>&);
414-
template<class X> constexpr complex<T>& operator*=(const complex<X>&);
415-
template<class X> constexpr complex<T>& operator/=(const complex<X>&);
411+
template<class X> constexpr complex& operator= (const complex<X>&);
412+
template<class X> constexpr complex& operator+=(const complex<X>&);
413+
template<class X> constexpr complex& operator-=(const complex<X>&);
414+
template<class X> constexpr complex& operator*=(const complex<X>&);
415+
template<class X> constexpr complex& operator/=(const complex<X>&);
416416
};
417417
}
418418
\end{codeblock}
@@ -445,18 +445,18 @@
445445
constexpr float imag() const;
446446
constexpr void imag(float);
447447

448-
constexpr complex<float>& operator= (float);
449-
constexpr complex<float>& operator+=(float);
450-
constexpr complex<float>& operator-=(float);
451-
constexpr complex<float>& operator*=(float);
452-
constexpr complex<float>& operator/=(float);
453-
454-
constexpr complex<float>& operator=(const complex<float>&);
455-
template<class X> constexpr complex<float>& operator= (const complex<X>&);
456-
template<class X> constexpr complex<float>& operator+=(const complex<X>&);
457-
template<class X> constexpr complex<float>& operator-=(const complex<X>&);
458-
template<class X> constexpr complex<float>& operator*=(const complex<X>&);
459-
template<class X> constexpr complex<float>& operator/=(const complex<X>&);
448+
constexpr complex& operator= (float);
449+
constexpr complex& operator+=(float);
450+
constexpr complex& operator-=(float);
451+
constexpr complex& operator*=(float);
452+
constexpr complex& operator/=(float);
453+
454+
constexpr complex& operator=(const complex&);
455+
template<class X> constexpr complex& operator= (const complex<X>&);
456+
template<class X> constexpr complex& operator+=(const complex<X>&);
457+
template<class X> constexpr complex& operator-=(const complex<X>&);
458+
template<class X> constexpr complex& operator*=(const complex<X>&);
459+
template<class X> constexpr complex& operator/=(const complex<X>&);
460460
};
461461

462462
template<> class complex<double> {
@@ -472,18 +472,18 @@
472472
constexpr double imag() const;
473473
constexpr void imag(double);
474474

475-
constexpr complex<double>& operator= (double);
476-
constexpr complex<double>& operator+=(double);
477-
constexpr complex<double>& operator-=(double);
478-
constexpr complex<double>& operator*=(double);
479-
constexpr complex<double>& operator/=(double);
480-
481-
constexpr complex<double>& operator=(const complex<double>&);
482-
template<class X> constexpr complex<double>& operator= (const complex<X>&);
483-
template<class X> constexpr complex<double>& operator+=(const complex<X>&);
484-
template<class X> constexpr complex<double>& operator-=(const complex<X>&);
485-
template<class X> constexpr complex<double>& operator*=(const complex<X>&);
486-
template<class X> constexpr complex<double>& operator/=(const complex<X>&);
475+
constexpr complex& operator= (double);
476+
constexpr complex& operator+=(double);
477+
constexpr complex& operator-=(double);
478+
constexpr complex& operator*=(double);
479+
constexpr complex& operator/=(double);
480+
481+
constexpr complex& operator=(const complex&);
482+
template<class X> constexpr complex& operator= (const complex<X>&);
483+
template<class X> constexpr complex& operator+=(const complex<X>&);
484+
template<class X> constexpr complex& operator-=(const complex<X>&);
485+
template<class X> constexpr complex& operator*=(const complex<X>&);
486+
template<class X> constexpr complex& operator/=(const complex<X>&);
487487
};
488488

489489
template<> class complex<long double> {
@@ -499,18 +499,18 @@
499499
constexpr long double imag() const;
500500
constexpr void imag(long double);
501501

502-
constexpr complex<long double>& operator= (long double);
503-
constexpr complex<long double>& operator+=(long double);
504-
constexpr complex<long double>& operator-=(long double);
505-
constexpr complex<long double>& operator*=(long double);
506-
constexpr complex<long double>& operator/=(long double);
507-
508-
constexpr complex<long double>& operator=(const complex<long double>&);
509-
template<class X> constexpr complex<long double>& operator= (const complex<X>&);
510-
template<class X> constexpr complex<long double>& operator+=(const complex<X>&);
511-
template<class X> constexpr complex<long double>& operator-=(const complex<X>&);
512-
template<class X> constexpr complex<long double>& operator*=(const complex<X>&);
513-
template<class X> constexpr complex<long double>& operator/=(const complex<X>&);
502+
constexpr complex& operator= (long double);
503+
constexpr complex& operator+=(long double);
504+
constexpr complex& operator-=(long double);
505+
constexpr complex& operator*=(long double);
506+
constexpr complex& operator/=(long double);
507+
508+
constexpr complex& operator=(const complex&);
509+
template<class X> constexpr complex& operator= (const complex<X>&);
510+
template<class X> constexpr complex& operator+=(const complex<X>&);
511+
template<class X> constexpr complex& operator-=(const complex<X>&);
512+
template<class X> constexpr complex& operator*=(const complex<X>&);
513+
template<class X> constexpr complex& operator/=(const complex<X>&);
514514
};
515515
}
516516
\end{codeblock}
@@ -577,7 +577,7 @@
577577

578578
\indexlibrarymember{operator+=}{complex}%
579579
\begin{itemdecl}
580-
constexpr complex<T>& operator+=(const T& rhs);
580+
constexpr complex& operator+=(const T& rhs);
581581
\end{itemdecl}
582582

583583
\begin{itemdescr}
@@ -596,7 +596,7 @@
596596

597597
\indexlibrarymember{operator-=}{complex}%
598598
\begin{itemdecl}
599-
constexpr complex<T>& operator-=(const T& rhs);
599+
constexpr complex& operator-=(const T& rhs);
600600
\end{itemdecl}
601601

602602
\begin{itemdescr}
@@ -615,7 +615,7 @@
615615

616616
\indexlibrarymember{operator*=}{complex}%
617617
\begin{itemdecl}
618-
constexpr complex<T>& operator*=(const T& rhs);
618+
constexpr complex& operator*=(const T& rhs);
619619
\end{itemdecl}
620620

621621
\begin{itemdescr}
@@ -633,7 +633,7 @@
633633

634634
\indexlibrarymember{operator/=}{complex}%
635635
\begin{itemdecl}
636-
constexpr complex<T>& operator/=(const T& rhs);
636+
constexpr complex& operator/=(const T& rhs);
637637
\end{itemdecl}
638638

639639
\begin{itemdescr}
@@ -651,7 +651,7 @@
651651

652652
\indexlibrarymember{operator+=}{complex}%
653653
\begin{itemdecl}
654-
template<class X> constexpr complex<T>& operator+=(const complex<X>& rhs);
654+
template<class X> constexpr complex& operator+=(const complex<X>& rhs);
655655
\end{itemdecl}
656656

657657
\begin{itemdescr}
@@ -669,7 +669,7 @@
669669

670670
\indexlibrarymember{operator-=}{complex}%
671671
\begin{itemdecl}
672-
template<class X> constexpr complex<T>& operator-=(const complex<X>& rhs);
672+
template<class X> constexpr complex& operator-=(const complex<X>& rhs);
673673
\end{itemdecl}
674674

675675
\begin{itemdescr}
@@ -687,7 +687,7 @@
687687

688688
\indexlibrarymember{operator*=}{complex}%
689689
\begin{itemdecl}
690-
template<class X> constexpr complex<T>& operator*=(const complex<X>& rhs);
690+
template<class X> constexpr complex& operator*=(const complex<X>& rhs);
691691
\end{itemdecl}
692692

693693
\begin{itemdescr}
@@ -705,7 +705,7 @@
705705

706706
\indexlibrarymember{operator/=}{complex}%
707707
\begin{itemdecl}
708-
template<class X> constexpr complex<T>& operator/=(const complex<X>& rhs);
708+
template<class X> constexpr complex& operator/=(const complex<X>& rhs);
709709
\end{itemdecl}
710710

711711
\begin{itemdescr}

0 commit comments

Comments
 (0)