1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<html> 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5<title>Function template operator==</title> 6<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css"> 7<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 8<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> 9<link rel="up" href="../../boost_container_header_reference.html#header.boost.container.static_vector_hpp" title="Header <boost/container/static_vector.hpp>"> 10<link rel="prev" href="static_vector.html" title="Class template static_vector"> 11<link rel="next" href="operator_idm45641209288560.html" title="Function template operator!="> 12</head> 13<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 14<table cellpadding="2" width="100%"><tr> 15<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td> 16<td align="center"><a href="../../../../index.html">Home</a></td> 17<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td> 18<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 19<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 20<td align="center"><a href="../../../../more/index.htm">More</a></td> 21</tr></table> 22<hr> 23<div class="spirit-nav"> 24<a accesskey="p" href="static_vector.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#header.boost.container.static_vector_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="operator_idm45641209288560.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 25</div> 26<div class="refentry"> 27<a name="boost.container.operator_idm45641209300016"></a><div class="titlepage"></div> 28<div class="refnamediv"> 29<h2><span class="refentrytitle">Function template operator==</span></h2> 30<p>boost::container::operator== — Checks if contents of two static_vectors are equal. </p> 31</div> 32<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> 33<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../boost_container_header_reference.html#header.boost.container.static_vector_hpp" title="Header <boost/container/static_vector.hpp>">boost/container/static_vector.hpp</a>> 34 35</span> 36<span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> V<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> C1<span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> C2<span class="special">,</span> <span class="keyword">typename</span> O1<span class="special">,</span> <span class="keyword">typename</span> O2<span class="special">></span> 37 <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">==</span><span class="special">(</span><a class="link" href="static_vector.html" title="Class template static_vector">static_vector</a><span class="special"><</span> <span class="identifier">V</span><span class="special">,</span> <span class="identifier">C1</span><span class="special">,</span> <span class="identifier">O1</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> x<span class="special">,</span> 38 <a class="link" href="static_vector.html" title="Class template static_vector">static_vector</a><span class="special"><</span> <span class="identifier">V</span><span class="special">,</span> <span class="identifier">C2</span><span class="special">,</span> <span class="identifier">O2</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> y<span class="special">)</span><span class="special">;</span></pre></div> 39<div class="refsect1"> 40<a name="id-1.3.10.14.38.4.4"></a><h2>Description</h2> 41<p> 42 43</p> 44<p><b>Complexity. </b>Linear O(N). </p> 45<p> 46</p> 47<div class="variablelist"><table border="0" class="variablelist compact"> 48<colgroup> 49<col align="left" valign="top"> 50<col> 51</colgroup> 52<tbody> 53<tr> 54<td><p><span class="term">Parameters:</span></p></td> 55<td><div class="variablelist"><table border="0" class="variablelist compact"> 56<colgroup> 57<col align="left" valign="top"> 58<col> 59</colgroup> 60<tbody> 61<tr> 62<td><p><span class="term"><code class="computeroutput">x</code></span></p></td> 63<td><p>The first <code class="computeroutput"><a class="link" href="static_vector.html" title="Class template static_vector">static_vector</a></code>. </p></td> 64</tr> 65<tr> 66<td><p><span class="term"><code class="computeroutput">y</code></span></p></td> 67<td><p>The second <code class="computeroutput"><a class="link" href="static_vector.html" title="Class template static_vector">static_vector</a></code>.</p></td> 68</tr> 69</tbody> 70</table></div></td> 71</tr> 72<tr> 73<td><p><span class="term">Returns:</span></p></td> 74<td><p><code class="computeroutput">true</code> if containers have the same size and elements in both containers are equal.</p></td> 75</tr> 76</tbody> 77</table></div> 78</div> 79</div> 80<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 81<td align="left"></td> 82<td align="right"><div class="copyright-footer">Copyright © 2009-2018 Ion Gaztanaga<p> 83 Distributed under the Boost Software License, Version 1.0. (See accompanying 84 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 85 </p> 86</div></td> 87</tr></table> 88<hr> 89<div class="spirit-nav"> 90<a accesskey="p" href="static_vector.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_container_header_reference.html#header.boost.container.static_vector_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="operator_idm45641209288560.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> 91</div> 92</body> 93</html> 94