LLVM OpenMP* Runtime Library
|
#include <kmp.h>
Public Member Functions | |
void | open (const char *filename, const char *mode, const char *env_var=nullptr) |
int | try_open (const char *filename, const char *mode) |
void | set_stdout () |
void | set_stderr () |
This class safely opens and closes a C-style FILE* object using RAII semantics. There are also methods which allow using stdout or stderr as the underlying FILE* object. With the implicit conversion operator to FILE*, an object with this type can be used in any function which takes a FILE* object e.g., fprintf(). No close method is needed at use sites.
|
inline |
|
inline |
|
inline |
|
inline |