fs/AllocatedPath: add string_view
constructor
This commit is contained in:
@@ -47,6 +47,9 @@ class AllocatedPath {
|
|||||||
explicit AllocatedPath(const_pointer _value) noexcept
|
explicit AllocatedPath(const_pointer _value) noexcept
|
||||||
:value(_value) {}
|
:value(_value) {}
|
||||||
|
|
||||||
|
explicit AllocatedPath(string_view _value) noexcept
|
||||||
|
:value(_value) {}
|
||||||
|
|
||||||
AllocatedPath(const_pointer _begin, const_pointer _end) noexcept
|
AllocatedPath(const_pointer _begin, const_pointer _end) noexcept
|
||||||
:value(_begin, _end) {}
|
:value(_begin, _end) {}
|
||||||
|
|
||||||
@@ -141,6 +144,11 @@ public:
|
|||||||
return AllocatedPath(fs);
|
return AllocatedPath(fs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gcc_pure
|
||||||
|
static AllocatedPath FromFS(string_view fs) noexcept {
|
||||||
|
return AllocatedPath(fs);
|
||||||
|
}
|
||||||
|
|
||||||
gcc_pure
|
gcc_pure
|
||||||
static AllocatedPath FromFS(const_pointer _begin,
|
static AllocatedPath FromFS(const_pointer _begin,
|
||||||
const_pointer _end) noexcept {
|
const_pointer _end) noexcept {
|
||||||
|
Reference in New Issue
Block a user