mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-30 03:37:44 +00:00
* concat * add path_utils * address feedback * use string in test * convert wstring to sting in windows * address feedback * address feedback * fix comment
23 lines
600 B
C++
23 lines
600 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
|
|
#include "core/common/common.h"
|
|
#include "core/common/path_string.h"
|
|
|
|
namespace onnxruntime {
|
|
|
|
namespace path_utils {
|
|
|
|
/** Return a PathString with concatenated args.
|
|
* TODO: add support for arguments of type std::wstring. Currently it is not supported as the underneath
|
|
* MakeString doesn't support this type.
|
|
*/
|
|
template <typename... Args>
|
|
PathString MakePathString(const Args&... args) {
|
|
const std::string str = onnxruntime::MakeString(args...);
|
|
return ToPathString(str);
|
|
}
|
|
}
|
|
}
|