
<h1 id="is-initialized">
 <a href="#/api/device/isInitialized" class="anchor">
   <span>isInitialized</span>
  </a>
</h1>

<div class="signature">

<hr>

  <div class="definition-container">
    <div class="definition">
      <code class="desktop-only"><span class="token keyword">bool</span> isInitialized()</code>
      <code class="mobile-only"><span class="token keyword">bool</span> isInitialized(
    
)</code>
      <div class="flex-spacing"></div>
      <a href="https://github.com/libocca/occa/blob/7d02eac1/include/occa/core/device.hpp#L224" target="_blank">Source</a>
    </div>
    <div class="description">

      <div class="section-header">Returns</div>
      <ul class="section-list">
        <li> ::: markdown Returns `true` if the [occa::device](/api/device/) has been intialized, through either the [(constructor)](/api/device/constructor) or [setup](/api/device/setup). ::: </li>
      </ul>
</div>
  </div>

  <hr>
</div>


<h2 id="description">
 <a href="#/api/device/isInitialized?id=description" class="anchor">
   <span>Description</span>
  </a>
</h2>

Check whether the [occa::device](/api/device/) has been intialized.
