MeshLib
 
Loading...
Searching...
No Matches
MR::Directory Struct Reference

#include <MRDirectory.h>

Public Attributes

std::filesystem::path dir
 
std::error_code & ec
 

Detailed Description

object of this struct can be passed to range-based-for to enumerate all entries in a filesystem directory without throwing exceptions, see https://stackoverflow.com/q/67776830/7325599 e.g. std::error_code ec; for ( auto dirEntry : Directory{ std::filesystem::current_path(), ec } ) { ... }

Member Data Documentation

◆ dir

std::filesystem::path MR::Directory::dir

◆ ec

std::error_code& MR::Directory::ec

The documentation for this struct was generated from the following file: