Skip to content

Commit 9f894e7

Browse files
authored
[func.wrap.func] Remove redundant declarations of swap and op== (#4411)
The declarations of the non-member functions swap and operator== are already present in the header synopsis [functional.syn] and do not need to be repeated in the class synopsis.
1 parent 06630dd commit 9f894e7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

source/utilities.tex

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13150,9 +13150,11 @@
1315013150
template<class> class function; // \notdef
1315113151
template<class R, class... ArgTypes> class function<R(ArgTypes...)>;
1315213152

13153+
// \ref{func.wrap.func.alg}, specialized algorithms
1315313154
template<class R, class... ArgTypes>
1315413155
void swap(function<R(ArgTypes...)>&, function<R(ArgTypes...)>&) noexcept;
1315513156

13157+
// \ref{func.wrap.func.nullptr}, null pointer comparison operator functions
1315613158
template<class R, class... ArgTypes>
1315713159
bool operator==(const function<R(ArgTypes...)>&, nullptr_t) noexcept;
1315813160

@@ -15067,14 +15069,6 @@
1506715069
function(R(*)(ArgTypes...)) -> function<R(ArgTypes...)>;
1506815070

1506915071
template<class F> function(F) -> function<@\seebelow@>;
15070-
15071-
// \ref{func.wrap.func.nullptr}, null pointer comparison operator functions
15072-
template<class R, class... ArgTypes>
15073-
bool operator==(const function<R(ArgTypes...)>&, nullptr_t) noexcept;
15074-
15075-
// \ref{func.wrap.func.alg}, specialized algorithms
15076-
template<class R, class... ArgTypes>
15077-
void swap(function<R(ArgTypes...)>&, function<R(ArgTypes...)>&) noexcept;
1507815072
}
1507915073
\end{codeblock}
1508015074

0 commit comments

Comments
 (0)