Share this postDaily bit(e) of C++Daily bit(e) of C++ | container::contains()Copy linkFacebookEmailNotesMoreDiscover more from Daily bit(e) of C++Random C++ knowledge organized in arbitrary order.Over 1,000 subscribersSubscribeBy subscribing, I agree to Substack's Terms of Use, and acknowledge its Information Collection Notice and Privacy Policy.Already have an account? Sign inDaily bit(e) of C++ | container::contains()Daily bit(e) of C++ #313, The C++20 method for associative and unordered containers: contains().Šimon TóthNov 10, 20232Share this postDaily bit(e) of C++Daily bit(e) of C++ | container::contains()Copy linkFacebookEmailNotesMoreShareC++20 added the method contains() to associative and unordered containers.This method checks for the presence of an element, simplifying the typical pattern of invoking find() and comparing against the end iterator.Click to open in Compiler Explorer.Leave a commentThanks for reading Daily bit(e) of C++! Subscribe for free to receive new posts and support my work.Subscribe2 Likes