約147件1ページ目

日本語のみで絞り込む

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:1か月以内
  • 3日前 -The find() function in C++ is used to search for a character or substring inside a string. It returns the position of the first occurrence if the element is ...

    3日前 -寻找最后一个不等于给定字符序列中任何字符的字符。搜索只考虑范围 [ 0 , pos ] 。如果范围中的所有字符都能在给定字符序列中找到,那么就会返回npos。

    3日前 -Using find() and substr(). The find() and substr() methods of std::string can split strings by locating delimiters and extracting substrings. find() locates ...

    4日前 -如果 pos > size() 是 true ,那么行为未定义。 (C++26 前). 如果 pos > size() 是 true ,那么:. 如果实现是硬化实现,那么就会发生契约违背。

    2026/10/28 -I'm working on some homework for class where I'm checking if a character is equal to: '+', '-', '/', or '*' for this postfix to infix converter.

    2026/10/29 -The goal is to use C++ 26 compile-time reflection ( meta::info ) to automatically generate string representations of an enum class without manually maintaining ...

    6日前 -std::regex_iterator is used to iterate over all matches of a regex (with std::cregex_iterator for const char* and std::sregex_iterator for std::string ). The ...

    2026/11/6 -cppreference sums it up the same way: "Search, insertion, and removal of elements have average constant-time complexity." std::map and std::set. Both are ...

    2026/11/9 -Modern C++ is nice to use, except cases where stupid mistakes caused by its heritage can be made (like returning std::string_view to a temporary string).

    2日前 -Motivation: In a library of mine, compatible with different C++ versions, I need an optional class template. I need to choose whether to use... " std::optional ...