# Checking if a vector of structs is contiguous in memory

**URL:** <https://discourse.julialang.org/t/checking-if-a-vector-of-structs-is-contiguous-in-memory/2759>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 19, 2017, 2:49pm UTC](https://discourse.julialang.org/t/checking-if-a-vector-of-structs-is-contiguous-in-memory/2759 "2017-03-19T14:49:11Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Lilith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lilith/32/27492_2.png) [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Post date:** [October 22, 2021, 12:08am UTC](https://discourse.julialang.org/t/checking-if-a-vector-of-structs-is-contiguous-in-memory/2759/10 "2021-10-22T00:08:17Z")

</div>

I love the manually digging through memory approach. And for those who want an easier way, @tkf told me about `Base.allocatedinline` which does precisely this. [When will a vector of structs be contiguous in memory? - #2 by tkf](https://discourse.julialang.org/t/when-will-a-vector-of-structs-be-contiguous-in-memory/70181/2)

---

_[View the full topic](https://discourse.julialang.org/t/checking-if-a-vector-of-structs-is-contiguous-in-memory/2759)._
