| 286 | } |
| 287 | |
| 288 | path path::root_name() const |
| 289 | { |
| 290 | iterator itr(begin()); |
| 291 | |
| 292 | return (itr.m_pos != m_pathname.size() |
| 293 | && ( |
| 294 | (itr.m_element.m_pathname.size() > 1 |
| 295 | && is_separator(itr.m_element.m_pathname[0]) |
| 296 | && is_separator(itr.m_element.m_pathname[1]) |
| 297 | ) |
| 298 | # ifdef BOOST_WINDOWS_API |
| 299 | || itr.m_element.m_pathname[itr.m_element.m_pathname.size()-1] == colon |
| 300 | # endif |
| 301 | )) |
| 302 | ? itr.m_element |
| 303 | : path(); |
| 304 | } |
| 305 | |
| 306 | path path::root_directory() const |
| 307 | { |