boost_filesystem 0.1.0

Boost C++ library boost_filesystem packaged using Zanbil
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <boost/filesystem.hpp>
using boost::filesystem::path;

int main()
{
    std::cout << path("a").stem() << std::endl;
    std::cout << path("a/").stem() << std::endl;
    std::cout << path("a/b").stem() << std::endl;
    std::cout << path("a/b/").stem() << std::endl;
    std::cout << path("a/b/c").stem() << std::endl;
    std::cout << path("a/b/c/").stem() << std::endl;
    std::cout << path("a/b/c/d").stem() << std::endl;
    std::cout << path("a/b/c/d/").stem() << std::endl;
    std::cout << path("a/b/c/d/e").stem() << std::endl;
    std::cout << path("a/b/c/d/e/").stem() << std::endl;
    return 0;
}