libkazv
|
#include <file-desc.hpp>
Public Member Functions | |
template<class DeriveT > | |
FileInterface (DeriveT &&o) | |
Constructor. More... | |
FileProvider | getProviderFor (FileDesc desc) const |
Get the provider for desc from this. More... | |
|
inline |
Constructor.
Construct a FileInterface using o
.
o
should be of a type that has the getProviderFor() const method that takes a FileDesc and returns an object implicitly convertible to FileProvider. That is, the following should be well-formed: [&o](FileDesc d) -> FileProvider { return static_cast<std::add_const_t<decltype(o)>>(o).getProviderFor(d); }
|
inline |
Get the provider for desc
from this.