代码搜索:operators
找到约 8,993 项符合「operators」的源代码
代码结果 8,993
www.eeworm.com/read/440906/1776928
c operators3.c
// Build don't link:
// GROUPS passed operators
class X { };
void operator->(X& a, X& b) {} // MUST be a member function// ERROR - .*
www.eeworm.com/read/440906/1777002
c operators1.c
// Build don't link:
// GROUPS passed operators
struct A {
int x;
};
int operator()(A x,float y) { // MUST be a member function// ERROR - .*
return 1;
}
int main() {
A x;
x(1.0); // ERROR - no
www.eeworm.com/read/440906/1777040
c operators2.c
// Build don't link:
// GROUPS passed operators
class X { };
void operator[](X& a, X& b) {} // MUST be a member function// ERROR - .*
www.eeworm.com/read/440906/1777088
c operators6.c
// Build don't link:
// GROUPS passed operators
class a {
public:
a* operator->() { return this; }
void p();
};
void a::p() {
operator->();
}
www.eeworm.com/read/440906/1777095
c operators8.c
// Build don't link:
// GROUPS passed operators
struct A {
char *p;
operator char *();
};
char foo(A a)
{
return a[0];
}
www.eeworm.com/read/440906/1777130
c operators4.c
// GROUPS passed operators
// Check that the & operator, when applied to a global function
// or member function returns a proper value as long as the context
// in which the result of & is used requi
www.eeworm.com/read/440906/1777180
c operators7.c
// Build don't link:
// GROUPS passed operators
class A {
char *p;
public:
operator const char *() const { return p; }
};
int foo(const A &a)
{
return (a != 0);
}
www.eeworm.com/read/440906/1777223
c operators5.c
// GROUPS passed operators
// Check that operators may be (directly) recursive.
extern "C" int printf (const char *, ...);
struct base {
int i;
};
base base_variable;
base operator+ (const base&
www.eeworm.com/read/440906/1785705
cc map_operators.cc
// 2000-09-07 bgarcia@laurelnetworks.com
// Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you ca
www.eeworm.com/read/440906/1785712
cc deque_operators.cc
// 2002-05-18 Paolo Carlini
// Copyright (C) 2002 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can