MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / OptionDetails

Method OptionDetails

Source/Utils/cxxopts.hpp:1231–1245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229 {
1230 public:
1231 OptionDetails
1232 (
1233 std::string short_,
1234 std::string long_,
1235 String desc,
1236 std::shared_ptr<const Value> val
1237 )
1238 : m_short(std::move(short_))
1239 , m_long(std::move(long_))
1240 , m_desc(std::move(desc))
1241 , m_value(std::move(val))
1242 , m_count(0)
1243 {
1244 m_hash = std::hash<std::string>{}(m_long + m_short);
1245 }
1246
1247 OptionDetails(const OptionDetails& rhs)
1248 : m_desc(rhs.m_desc)

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected