C++17 5

[C++17] std::filesystem::path

c++17 부터 추가된 filesystem 안에 있는 path. https://en.cppreference.com/w/cpp/filesystem/path 자세한 것들은 여기있고.. 기본적으로 사용하는 것들 따로 정리해 보았다. 먼저, std::filesystem:: ~~ 라고 쓰기 귀찮으니, 관례적으로 using fs = std::filesystem이라 정의해 두고 사용한다고 한다. #include #include namespace fs = std::filesystem; int main() { // 현재 파일 fs::path _path("./test.txt"); std::cout

C++/STL 2023.04.04
반응형