CoolProp 8.0.0
An open-source fluid property and humid air property database
atomic_write.h
Go to the documentation of this file.
1#ifndef COOLPROP_DETAIL_ATOMIC_WRITE_H
2#define COOLPROP_DETAIL_ATOMIC_WRITE_H
3
4// Narrow home of write_bytes_atomic, split out of detail/filepaths.h (GH:
5// de-leak <filesystem>). filepaths.h is pulled into the public surface via
6// detail/tools.h -> ... -> AbstractState.h; keeping the only std::filesystem
7// signature here means including AbstractState.h no longer requires <filesystem>
8// (and thus C++17 for that reason). Include this header where you actually
9// call write_bytes_atomic.
10
11#include <cstddef>
12#include <filesystem>
13
37void write_bytes_atomic(const std::filesystem::path& target, const void* bytes, std::size_t size, bool restrict_perms = false);
38
39#endif // COOLPROP_DETAIL_ATOMIC_WRITE_H