This commit is contained in:
Baptiste Wicht 2016-09-25 21:04:42 +02:00
parent 3537a55a18
commit e3c66b0faa
3 changed files with 12 additions and 12 deletions

View File

@ -37,8 +37,8 @@ public:
size_t rm(const path& file_path); size_t rm(const path& file_path);
}; };
typedef std::string (*dynamic_fun_t)(); using dynamic_fun_t = std::string (*)();
typedef std::string (*dynamic_fun_data_t)(void* data); using dynamic_fun_data_t = std::string (*)(void*);
void set_constant_value(const path& mount_point, const path& file_path, const std::string& value); void set_constant_value(const path& mount_point, const path& file_path, const std::string& value);
void set_dynamic_value(const path& mount_point, const path& file_path, dynamic_fun_t fun); void set_dynamic_value(const path& mount_point, const path& file_path, dynamic_fun_t fun);

View File

@ -13,8 +13,8 @@ namespace std {
template<typename T1, typename T2> template<typename T1, typename T2>
class pair { class pair {
public: public:
typedef T1 first_type; using first_type = T1;
typedef T2 second_type; using second_type = T2;
first_type first; first_type first;
second_type second; second_type second;

View File

@ -41,12 +41,12 @@ struct default_delete<T[]> {
template <typename T, typename D = default_delete<T>> template <typename T, typename D = default_delete<T>>
class unique_ptr { class unique_ptr {
public: public:
typedef T* pointer_type; using pointer_type = T*;
typedef T element_type; using element_type = T;
typedef D deleter_type; using deleter_type = D;
private: private:
typedef tuple<pointer_type, deleter_type> data_impl; using data_impl = tuple<pointer_type, deleter_type>;
data_impl _data; data_impl _data;
@ -121,12 +121,12 @@ public:
template <typename T, typename D> template <typename T, typename D>
class unique_ptr<T[], D> { class unique_ptr<T[], D> {
public: public:
typedef T* pointer_type; using pointer_type = T*;
typedef T element_type; using element_type = T;
typedef D deleter_type; using deleter_type = D;
private: private:
typedef tuple<pointer_type, deleter_type> data_impl; using data_impl = tuple<pointer_type, deleter_type>;
data_impl _data; data_impl _data;