kelbon
kelbon
Тривиальные геттеры и сеттеры это ошибка проектирования и бесполезный код. В джаву С++ не нужно превращать Сеттер должен делать что-то осмысленное и называться не SetX, например vector::resize/reserve, это вообще говоря...
> > Если нужно чтобы диапазон завладел контейнером можно воспользоваться std::ranges::owning_view: > > ``` > > for (auto v : views::owning_view{make_generator()}) > > std::cout > ``` > > > >...
I have tested many variations such as compile time flat maps with various implementations. Surprising as it may seem, but I came to the conclusion that, firstly, the naive std::map...
Oh, sorry, i forget it is map not So just string->string_view will be helpfull... Or it can be array of arrays of string views... (But it can be inflexibly(possible bad...
There are no _t postfix, no ::type, so no sfinae, enable if is useless, is_member... shit is useless, ::value is useless, its just equal to typename = decltype(&T::c_str) and its...
нуууу... Вообще-то мешает. Это не для всех шаблонов работает, а только для тех где типы. И зачем rebind exptected?? P.S. аллокатор просто должен зависеть не от типа, а от размера...
> Oh no, bro. When I have time, I will definitely try to make it. I'm always happy with ideas, but it seems impossible to do something adequate here
> Oh no, bro. When I have time, I will definitely try to make it. I don't remember exactly what the discussion was, but I'm just throwing off a random...
Это называется contains
> Первую часть скоро примут в стандарт в https://wg21.link/P1061 > > Вторая часть весьма противоречива и требует прототипа. Если напишите - будет круто, а без него - идея обречена на...