Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
m S-Lang: WP:LINK: update-standardize, needless WP:PIPE > WP:NOPIPE.
m CFML: WP:LINK update-standardize. MOS:FIRSTABBReviation clarify, define before WP:ABBR in parentheses.
Line 174:
In C++, the <code>std::map</code> class is [[Generic programming#Templates in C.2B.2B|templated]] which allows the [[data type]]s of keys and values to be different for different <code>map</code> instances. For a given instance of the <code>map</code> class the keys must be of the same base type. The same must be true for all of the values. Although <code>std::map</code> is typically implemented using a [[self-balancing binary search tree]], C++11 defines a second map called <code>[[std::unordered_map]]</code>, which has the algorithmic characteristics of a hash table. This is a common vendor extension to the [[Standard Template Library]] (STL) as well, usually called <code>hash_map</code>, available from such implementations as SGI and STLPort.
 
===ColdFusion Markup Language===
===CFML===
A structure in [[CFMLColdFusion Markup Language]] (CFML) is equivalent to an associative array:
 
<syntaxhighlight lang=CFS>