mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-14 06:56:51 -04:00
Cleanup
This commit is contained in:
parent
3537a55a18
commit
e3c66b0faa
@ -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);
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user