CPP_INTERVIEW_LIB Telegram 372
🍔 Какая избавиться от вложенных min/max?

Старый вариант использования

auto maxVal = std::max(x1, min(x2, max(x3, x4)));


Сейчас же можно использовать cписки инициализации, чтобы уменьшить вложенность
auto maxVal = std::max({x1, x2, x3, x4});
👍7



tgoop.com/cpp_interview_lib/372
Create:
Last Update:

🍔 Какая избавиться от вложенных min/max?

Старый вариант использования


auto maxVal = std::max(x1, min(x2, max(x3, x4)));


Сейчас же можно использовать cписки инициализации, чтобы уменьшить вложенность
auto maxVal = std::max({x1, x2, x3, x4});

BY Библиотека собеса по C++ | вопросы с собеседований


Share with your friend now:
tgoop.com/cpp_interview_lib/372

View MORE
Open in Telegram


Telegram News

Date: |

Polls A new window will come up. Enter your channel name and bio. (See the character limits above.) Click “Create.” On June 7, Perekopsky met with Brazilian President Jair Bolsonaro, an avid user of the platform. According to the firm's VP, the main subject of the meeting was "freedom of expression." SUCK Channel Telegram Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place.
from us


Telegram Библиотека собеса по C++ | вопросы с собеседований
FROM American