I've tried
[c++11] = delete
[c++11] "= delete"
[c++11] "=delete"
but I get topics about 'delete', '=', and others.
Firstly, I'd suggest avoiding the SO search feature; use your favorite search engine, and filter by the site with site:stackoverflow.com
. I search for duplicate targets a lot, and have generally had more success with a search engine.
More importantly, don't search for syntax, such as =delete
. As you've observed, you'll get a lot of hits for the delete
operator, as well as the assignment operator =
. Instead, search for the name of the feature, in this case, "deleted functions".
Also, don't search for a specific language revision, such as C++11, even though that's the revision the feature was added in. Simply search for C++ and you'll get the hits for C++11 as well.
Running a search for site:stackoverflow.com c++ deleted functions on DDG yields a number of useful hits (I've listed the first 5)
4 of these are actually debugging questions (which are still useful to read), but the 3rd result is a canonical that explains the feature quite well, both for regular functions, as well as the more common context of special member functions.
site:stackoverflow.com
. It's not as good at finding by tags, but it's at least slightly better than SO's built-in search (which is awful at finding anything containing anything that isn't a "normal" letter, in case you haven't noticed)[c++11] code:"=delete"
?A() = delete;
in answer text but not in a code section (and obvious I do it in comments). Regardless, more answers will have syntax type queries in[code]
sections (oops, I did it again).