LIEF: Library to Instrument Executable Formats
Version 2.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
lief-install
x86_64
static
include
LIEF
path.hpp
Go to the documentation of this file.
1
/* Copyright 2017 - 2026 R. Thomas
2
*
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
#ifndef LIEF_PATH_H
16
#define LIEF_PATH_H
17
#include <type_traits>
18
#include <filesystem>
19
20
namespace
LIEF
{
21
23
template
<
class
T>
24
inline
constexpr
bool
is_path_v
=
25
std::is_same_v<std::decay_t<T>, std::filesystem::path>;
26
30
template
<
class
... Ts>
31
using
enable_if_path_t
= std::enable_if_t<(
is_path_v<Ts>
|| ...),
int
>;
32
33
}
34
35
#endif
LIEF
LIEF namespace.
Definition
Abstract/Binary.hpp:41
LIEF::is_path_v
constexpr bool is_path_v
Whether T is a std::filesystem::path.
Definition
path.hpp:24
LIEF::enable_if_path_t
std::enable_if_t<(is_path_v< Ts >||...), int > enable_if_path_t
Helper used by the functions that expose both a std::string_view and a std::filesystem::path overload...
Definition
path.hpp:31
Generated by
1.19.0