CPPPROGLIB Telegram 4553
⚙️ Зачем нужен std:string_view?

std::string_view — легковесный способ работы с неизменяемыми последовательностями символов, представленными строками, без копирования их данных

std::string_view — это просто пара значений, указатель на последовательность и размер

Так как std::string_view не является владельцем данных, то если строка исчезнет, то никто не информирует, что std::string_view перестал быть валидным

‼️ Основная идея — это дёшево хранить и передавать строки
👍92



tgoop.com/cppproglib/4553
Create:
Last Update:

⚙️ Зачем нужен std:string_view?

std::string_view — легковесный способ работы с неизменяемыми последовательностями символов, представленными строками, без копирования их данных

std::string_view — это просто пара значений, указатель на последовательность и размер

Так как std::string_view не является владельцем данных, то если строка исчезнет, то никто не информирует, что std::string_view перестал быть валидным

‼️ Основная идея — это дёшево хранить и передавать строки

BY Библиотека C/C++ разработчика | cpp, boost, qt


Share with your friend now:
tgoop.com/cppproglib/4553

View MORE
Open in Telegram


Telegram News

Date: |

The group also hosted discussions on committing arson, Judge Hui said, including setting roadblocks on fire, hurling petrol bombs at police stations and teaching people to make such weapons. The conversation linked to arson went on for two to three months, Hui said. Matt Hussey, editorial director at NEAR Protocol also responded to this news with “#meIRL”. Just as you search “Bear Market Screaming” in Telegram, you will see a Pepe frog yelling as the group’s featured image. Earlier, crypto enthusiasts had created a self-described “meme app” dubbed “gm” app wherein users would greet each other with “gm” or “good morning” messages. However, in September 2021, the gm app was down after a hacker reportedly gained access to the user data. Joined by Telegram's representative in Brazil, Alan Campos, Perekopsky noted the platform was unable to cater to some of the TSE requests due to the company's operational setup. But Perekopsky added that these requests could be studied for future implementation. For crypto enthusiasts, there was the “gm” app, a self-described “meme app” which only allowed users to greet each other with “gm,” or “good morning,” a common acronym thrown around on Crypto Twitter and Discord. But the gm app was shut down back in September after a hacker reportedly gained access to user data.
from us


Telegram Библиотека C/C++ разработчика | cpp, boost, qt
FROM American