[#FOLLY_ASSUME_FBVECTOR_COMPATIBLE]
= FOLLY&lowbar;ASSUME&lowbar;FBVECTOR&lowbar;COMPATIBLE
:mrdocs:

The FOLLY&lowbar;ASSUME&lowbar;FBVECTOR&lowbar;COMPATIBLE&ast; macros below encode the assumption that the type is relocatable per IsRelocatable above&period; Many types can be assumed to satisfy this condition, but it is the responsibility of the user to state that assumption&period; User&hyphen;defined classes will not be optimized for use with fbvector (see FBVector&period;h) unless they state that assumption&period;

== Synopsis

Declared in `&lt;folly&sol;Traits&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define FOLLY&lowbar;ASSUME&lowbar;FBVECTOR&lowbar;COMPATIBLE(...)

----

== Description

Use FOLLY&lowbar;ASSUME&lowbar;FBVECTOR&lowbar;COMPATIBLE with regular types like this&colon;

FOLLY&lowbar;ASSUME&lowbar;FBVECTOR&lowbar;COMPATIBLE(MyType)

The versions FOLLY&lowbar;ASSUME&lowbar;FBVECTOR&lowbar;COMPATIBLE&lowbar;1, &lowbar;2, &lowbar;3, and &lowbar;4 allow using the macro for describing templatized classes with 1, 2, 3, and 4 template parameters respectively&period; For template classes just use the macro with the appropriate number and pass the name of the template to it&period; Example&colon;

template &lt;class T1, class T2&gt; class MyType &lcub; &period;&period;&period; &rcub;&semi; &period;&period;&period; &sol;&sol; Make sure you&apos;re at global scope FOLLY&lowbar;ASSUME&lowbar;FBVECTOR&lowbar;COMPATIBLE&lowbar;2(MyType)


[.small]#Created with https://www.mrdocs.com[MrDocs]#
