26#ifndef CASA_BINARYSEARCH_H
27#define CASA_BINARYSEARCH_H
30#include <casacore/casa/aips.h>
138template <
class Container,
class ElType>
142template <
class Container,
class ElType>
150#ifndef CASACORE_NO_AUTO_TEMPLATES
151#include <casacore/casa/Utilities/BinarySearch.tcc>
For temporary backward namespace compatibility, use casa as alias for casacore.
bool Bool
Define the standard types used by Casacore.
NewDelAllocator< T > NewDelAllocator< T >::value
Int binarySearch(Bool &found, const Container &container, const ElType &value, uInt n, Int lower=0)
Search container for value.
Int binarySearchBrackets(Bool &found, const Container &container, const ElType &value, uInt n, Int lower=0)
This version of the function is for containers that use [] for indexing.