От: | B0FEE664 | ||
Дата: | 21.08.20 15:39 | ||
Оценка: | 2 (1) |
template<typename Collection>
std::enable_if_t<
!std::is_rvalue_reference_v<Collection&>,
void
>
operator|(const Collection& col, int)
{
cout<<"lvalue\n";
}
template<typename Collection>
std::enable_if_t<
std::is_rvalue_reference_v<Collection&&>,
void
>
operator|(Collection&& col, int)
{
cout<<"rvalue\n";
}