Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-01-09 10:20:48

0001 // Copyright (c) 2024 The Pybind Development Team.
0002 // All rights reserved. Use of this source code is governed by a
0003 // BSD-style license that can be found in the LICENSE file.
0004 
0005 #pragma once
0006 
0007 #include "common.h"
0008 #include "struct_smart_holder.h"
0009 
0010 #include <type_traits>
0011 
0012 PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
0013 
0014 using pybind11::memory::smart_holder;
0015 
0016 PYBIND11_NAMESPACE_BEGIN(detail)
0017 
0018 template <typename H>
0019 using is_smart_holder = std::is_same<H, smart_holder>;
0020 
0021 PYBIND11_NAMESPACE_END(detail)
0022 PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)