﻿# intptr\_t

The _intptr\_t_ type is a signed integer [memsize type](https://pvs-studio.com/en/blog/terms/0030/) that can safely hold a pointer to itself on any platform, regardless of its bitness\. The _intptr\_t_ type is the analog of the [_ptrdiff\_t_](https://pvs-studio.com/en/blog/terms/0041/) and [_INT\_PTR_](https://pvs-studio.com/en/blog/terms/0024/) types\. The type size depends on the [data model](https://pvs-studio.com/en/blog/terms/0012/) being used\.

The standard doesn't guarantee the availability of the type \(it's marked as optional\)\. In other words, its presence depends on the language standard, compiler, and standard library that are used\.

To learn more about the memsize types and their usage, see the article: "[About size\_t and ptrdiff\_t](https://pvs-studio.com/en/blog/posts/cpp/a0050/)"\.