Мой пример следующий (
Код: Выделить всё
pПеременные
Код: Выделить всё
#include
#include
#include
#include
int main()
{
using Path = std::filesystem::path;
Path p1 = "/folder1/file.txt";
Path b1 = "/folder1";
auto finalPath = b1 / p1;
auto [iter1, iter2] = std::mismatch(b1.begin(), b1.end(), finalPath.begin());
if( iter1 == b1.end()){
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79195361/how-does-stdmismatch-work-with-stdfilesystempath[/url]