代码搜索:operators
找到约 8,993 项符合「operators」的源代码
代码结果 8,993
www.eeworm.com/read/440906/1778003
c overload19.c
// PRMS Id: 4689
// Bug: g++ doesn't notice operators overloaded on enumeral types.
enum E { A=5, B=32, C=100 };
E operator|(E a, E b) { return C; };
int main()
{
return (A|B) != C;
}
www.eeworm.com/read/395929/2428952
asm pl7.asm
.ALTERNATE
! test of string operators
define MACRO str1,str2
SDATA str1
SDATA "str2"
ENDM
define one" way to get "spaces,0
define "lot's! of ,chars%", 0
www.eeworm.com/read/366702/2865657
c multiple-overflow-warn-2.c
/* PR c/19978 : Test for duplicated warnings (binary operators). */
/* { dg-do compile } */
/* { dg-options "-Woverflow" } */
#include
int
g1 (void)
{
return INT_MAX + 1 - INT_MAX; /*
www.eeworm.com/read/366702/2871629
c 900519_01.c
// { dg-do assemble }
// g++ 1.37.1 bug 900519_01
// g++ fails to flag errors for some attempts to declare or define non-member
// type conversion operators.
// cfront 2.0 passes this test.
// key
www.eeworm.com/read/366702/2877055
f90 use_5.f90
! { dg-do run }
! Renaming of operators
module z
interface operator(.addfive.)
module procedure sub2
end interface
contains
function sub2(x)
integer :: sub
integer,intent(in) :: x
sub2 =
www.eeworm.com/read/366702/2882240
c usual-arith-conv-bad.c
/* { dg-do compile } */
/* { dg-options "-std=gnu99" } */
/* N1150 5.4: Usual arithmetic conversions.
C99 6.3.1.8[1] (New).
Test arithmetic operators between decimal float types and generic
www.eeworm.com/read/366902/9793526
h byte.h
//: C12:Byte.h
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
// Member overloaded operators
#ifndef
www.eeworm.com/read/269755/11079182
cpp newmat6.cpp
/// \ingroup newmat
///@{
/// \file newmat6.cpp
/// Operators, element access.
// Copyright (C) 1991,2,3,4: R B Davies
#include "include.h"
#include "newmat.h"
#include "newmatrc.h"
www.eeworm.com/read/388251/8622943
hpp matrixfunctors.hpp
#pragma ident "$Id: MatrixFunctors.hpp 142 2006-09-22 16:51:26Z architest $"
/**
* @file MatrixFunctors.hpp
* Matrix function operators (SVD, LUD, etc)
*/
#ifndef GPSTK_MATRIX_FUNCTORS_HPP
#de
www.eeworm.com/read/286262/8779835
h ops.h
/* $Header: /nw2/tony/src/stevie/src/RCS/ops.h,v 1.2 89/07/19 08:08:21 tony Exp $
*
* Macros and declarations for the operator code in ops.c
*/
/*
* Operators
*/
#define NOP 0 /* no pen