A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/ncbiutil_8hpp.html below:

NCBI C++ ToolKit: include/corelib/ncbiutil.hpp File Reference

Useful/utility classes and methods. More...

#include <corelib/ncbistd.hpp>
#include <memory>
#include <map>

Go to the source code of this file.

Go to the SVN repository for this file.

template<class X > X *  NotNull (X *object)   Check for not null value (after C malloc, strdup etc.). More...
  template<class Key , class Element > Element  GetMapElement (const map< Key, Element > &m, const Key &key, const Element &def=0)   Get map element (pointer) or NULL if absent. More...
  template<class Key , class Element > void  SetMapElement (map< Key, Element * > &m, const Key &key, Element *data)   Set map element – if data is null, erase the existing key. More...
  template<class Key , class Element > bool  InsertMapElement (map< Key, Element * > &m, const Key &key, Element *data)   Insert map element. More...
  template<class Key > string  GetMapString (const map< Key, string > &m, const Key &key)   Get string map element or "" if absent. More...
  template<class Key > void  SetMapString (map< Key, string > &m, const Key &key, const string &data)   Set string map element – if data is null erase the existing key. More...
  template<class Cnt > void  DeleteElements (Cnt &cnt)   Delete all elements from a container of pointers (list, vector, set, multiset); clear the container afterwards. More...
  template<class Key , class Element > void  DeleteElements (map< Key, Element * > &m)   Delete all elements from map containing pointers; clear container afterwards. More...
  template<class Key , class Element > void  DeleteElements (multimap< Key, Element * > &m)   Delete all elements from multimap containing pointers; clear container afterwards. More...
  template<class Result , class Source , class ToKey > Result &  AutoMap (unique_ptr< Result > &cache, const Source &source, const ToKey &toKey)   Retrieve the result from the result cache - if cache is empty, insert into cache from the supplied source. More...
  template<typename C , typename F > C::value_type  FindBestChoice (const C &container, F score_func)   Find the best choice (lowest score) for values in a container. More...
  template<class Iterator > BEGIN_STD_SCOPE bool  is_sorted (Iterator iter1, Iterator iter2)   is_sorted is provided by some implementations of the STL and may be included in future releases of all standard-conforming implementations This is provided here for future compatibility More...
  template<class Iterator , class Predicate > bool  is_sorted (Iterator iter1, Iterator iter2, Predicate pred)  

Useful/utility classes and methods.

Definition in file ncbiutil.hpp.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4