Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::binary_search is an STL algorithm to determine if a value is present in a sorted container.
Operating system: Ubuntu 10.04 LTS Lucid Lynx
IDE: Qt Creator 2.0.0
Project type: Qt4 console Application
Libraries used:
#include <algorithm> |
Screen output:
I will be found
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
I will not be found
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
bool operator<(const Gossip& lhs, const Gossip& rhs)
|
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.