All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
nullPtr.h
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_BASE_TF_NULL_PTR_H
8#define PXR_BASE_TF_NULL_PTR_H
9
10#include "pxr/pxr.h"
11#include "pxr/base/tf/api.h"
12
13PXR_NAMESPACE_OPEN_SCOPE
14
15// A type used to create the \a TfNullPtr token.
16struct TfNullPtrType
17{
18};
19
20// A token to represent null for smart pointers like \a TfWeakPtr and \a
21// TfRefPtr.
22TF_API extern const TfNullPtrType TfNullPtr;
23
24PXR_NAMESPACE_CLOSE_SCOPE
25
26#endif // PXR_BASE_TF_NULL_PTR_H