代码搜索:ptr
找到约 10,000 项符合「ptr」的源代码
代码结果 10,000
www.eeworm.com/read/168845/5435465
cpp register_ptr.cpp
// Copyright David Abrahams 2004. Distributed under the Boost
// Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include
www.eeworm.com/read/168845/5435482
cpp shared_ptr.cpp
// Copyright David Abrahams 2002.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#inc
www.eeworm.com/read/168845/5435498
cpp auto_ptr.cpp
// Copyright David Abrahams 2002.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#inc
www.eeworm.com/read/168845/5435517
py shared_ptr.py
# Copyright David Abrahams 2004. Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
'''
>>> from
www.eeworm.com/read/168845/5435595
h smart_ptr.h
/* Copyright Bruno da Silva de Oliveira 2003. Use, modification and
distribution is subject to the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http:#
www.eeworm.com/read/162614/5519552
c ptr1.c
// { dg-do run }
// Bug: catching pointers by reference doesn't work right.
extern "C" int printf (const char *, ...);
struct E {
int x;
E(int i) { x = i; };
};
int main()
{
try {
E *p =
www.eeworm.com/read/162614/5520229
c auto_ptr.c
// { dg-do assemble }
template struct auto_ptr_ref {
Y* py;
auto_ptr_ref(Y* p) : py(p) {}
};
template struct auto_ptr {
X* px;
public:
typedef X element_type;
www.eeworm.com/read/162614/5523158
f90 ptr.f90
program ptr
implicit none
integer, pointer, dimension(:) :: a, b
integer, pointer :: p
integer, target :: i
allocate (a(1:6))
a = (/ 1, 2, 3, 4, 5, 6 /)
b => a
if (any (b .
www.eeworm.com/read/340665/3273545
c ptr1.c
// Bug: catching pointers by reference doesn't work right.
extern "C" int printf (const char *, ...);
struct E {
int x;
E(int i) { x = i; };
};
int main()
{
try {
E *p = new E(5);
thr
www.eeworm.com/read/340665/3274222
c auto_ptr.c
template struct auto_ptr_ref {
Y* py;
auto_ptr_ref(Y* p) : py(p) {}
};
template struct auto_ptr {
X* px;
public:
typedef X element_type;
explicit auto_ptr(X* p