Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データ型は U1、U2、U4、I1、I2、I4、std::stringまたはbool.
std::string
bool
データが に格納されているとしstd::vectorます。
std::vector
値でデータ型を確認するにはどうすればよいですか?
私の知る限りtryParse()、C# にはあります。C++でどうすればいいですか?
tryParse()
Value = MyVec[0]; // the value is 65;
65がタイプ U2 であるかどうかを検証したいですか?
65