env.hpp
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #include <optional>
7 #include <string>
8 
9 namespace kvikio::detail {
24 std::optional<std::string> unwrap_or_env(std::optional<std::string> value,
25  std::string const& env_var,
26  std::optional<std::string> const& err_msg = std::nullopt);
27 } // namespace kvikio::detail