Merge remote-tracking branch 'origin/main'
This commit is contained in:
@ -15,11 +15,11 @@ public:
|
|||||||
pair(pair &&other) = default;
|
pair(pair &&other) = default;
|
||||||
pair(const T1 &x, const T2 &y) : first(x), second(y) {}
|
pair(const T1 &x, const T2 &y) : first(x), second(y) {}
|
||||||
template<class U1, class U2>
|
template<class U1, class U2>
|
||||||
pair(U1 &&x, U2 &&y) : first(x), second(y) {}
|
pair(U1 &&x, U2 &&y) : first(std::forward(x)), second(std::forward(y)) {}
|
||||||
template<class U1, class U2>
|
template<class U1, class U2>
|
||||||
pair(const pair<U1, U2> &other) : first(other.first), second(other.second) {}
|
pair(const pair<U1, U2> &other) : first(other.first), second(other.second) {}
|
||||||
template<class U1, class U2>
|
template<class U1, class U2>
|
||||||
pair(pair<U1, U2> &&other) : first(other.first), second(other.second) {}
|
pair(pair<U1, U2> &&other) : first(std::move(other.first)), second(std::move(other.second)) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user