Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
file_utils.cpp File Reference
#include "file_utils.h"
#include <memory>
#include <fstream>
#include <string>

Namespaces

 gamgee
 
 gamgee::utils
 utility functions for the gamgee library
 

Functions

std::shared_ptr< std::ifstream > gamgee::utils::make_shared_ifstream (std::ifstream *ifstream_ptr)
 wraps a pre-allocated ifstream in a shared_ptr with correct deleter More...
 
std::shared_ptr< std::ifstream > gamgee::utils::make_shared_ifstream (std::string filename)
 wraps an input file in a shared_ptr to an ifstream with correct deleter More...