AB
Или я чего-то не понимаю..
Size: a a a
AB
NK
NK
AB
IZ
FS
AS
class foo {
std::mutex m;
public:
void blocking1() {
std::lock_guard<std::mutex> g(m);
do_blocking1();
}
void blocking2() {
std::lock_guard<std::mutex> g(m);
do_blocking2();
}
private:
void do_blocking1() {
do_blocking2();
}
void do_blocking2() {...}
};
NK
AS
AB
AS
AB
с
й):}
template<typename L, typename R>
my_class create_my_class_instance(L left, R right)
{
if(std::numeric_limits<L>::max() > std::numeric_limits<R>::max())
{
return my_class<L>(left, static_cast<L>(right));
}
else
{
return my_class<R>(static_cast<R>(left), right);
с
АК
std::common_type_t<L, R>
скорее всего поможетK
d
AF
VK
с