comparison libinterp/corefcn/bitfcns.cc @ 30390:a61e1a0f6024 stable

maint: style check C++ files in libinterp/ ahead of 7.1 release. * Cell.cc, __eigs__.cc, __ichol__.cc, __ilu__.cc, __magick_read__.cc, __qp__.cc, bitfcns.cc, bsxfun.cc, c-file-ptr-stream.h, ccolamd.cc, cellfun.cc, data.cc, debug.cc, defun-int.h, dlmread.cc, event-manager.cc, fftn.cc, file-io.cc, ft-text-renderer.cc, gl2ps-print.cc, graphics.cc, graphics.in.h, gzfstream.cc, gzfstream.h, jsondecode.cc, jsonencode.cc, latex-text-renderer.cc, ls-mat5.cc, lu.cc, mex.cc, oct-stream.cc, oct-strstrm.cc, ordqz.cc, pager.h, pr-output.cc, qz.cc, schur.cc, sparse-xdiv.cc, sparse-xpow.cc, sparse.cc, stack-frame.h, strfns.cc, svd.cc, symrcm.cc, symscope.h, sysdep.cc, text-engine.h, text-renderer.h, tril.cc, variables.h, xdiv.h, __glpk__.cc, __init_fltk__.cc, __init_gnuplot__.cc, __voronoi__.cc, audiodevinfo.cc, cdef-class.cc, cdef-class.h, cdef-manager.cc, cdef-manager.h, cdef-method.cc, cdef-object.cc, ov-base-diag.cc, ov-base-diag.h, ov-base-int.cc, ov-base-int.h, ov-base-mat.cc, ov-base-mat.h, ov-base-scalar.h, ov-base-sparse.cc, ov-base-sparse.h, ov-base.h, ov-bool-mat.cc, ov-cell.cc, ov-cell.h, ov-class.cc, ov-class.h, ov-dld-fcn.cc, ov-intx.h, ov-lazy-idx.cc, ov-lazy-idx.h, ov-mex-fcn.h, ov-perm.cc, ov-perm.h, ov-range.cc, ov-re-mat.cc, ov-re-mat.h, ov-str-mat.h, ov-struct.cc, ov-typeinfo.h, ov-usr-fcn.cc, ov.h, parse.h, pt-cell.cc, pt-stmt.cc, pt-tm-const.cc, pt-walk.cc: Style check C++ files in libinterp/ ahead of 7.1 release.
author Rik <rik@octave.org>
date Sun, 28 Nov 2021 21:52:08 -0800
parents 32c3a5805893
children 796f54d4ddbf
comparison
equal deleted inserted replaced
30388:bf4cea7b9ba8 30390:a61e1a0f6024
55 { 55 {
56 template <typename T> 56 template <typename T>
57 struct bit_and 57 struct bit_and
58 { 58 {
59 public: 59 public:
60 T operator() (const T & op1, const T & op2) const { return (op1 & op2); } 60 T operator() (const T& op1, const T& op2) const { return (op1 & op2); }
61 }; 61 };
62 62
63 template <typename T> 63 template <typename T>
64 struct bit_or 64 struct bit_or
65 { 65 {
66 public: 66 public:
67 T operator() (const T & op1, const T & op2) const { return (op1 | op2); } 67 T operator() (const T& op1, const T& op2) const { return (op1 | op2); }
68 }; 68 };
69 69
70 template <typename T> 70 template <typename T>
71 struct bit_xor 71 struct bit_xor
72 { 72 {
73 public: 73 public:
74 T operator() (const T & op1, const T & op2) const { return (op1 ^ op2); } 74 T operator() (const T& op1, const T& op2) const { return (op1 ^ op2); }
75 }; 75 };
76 } 76 }
77 #endif 77 #endif
78 78
79 OCTAVE_NAMESPACE_BEGIN 79 OCTAVE_NAMESPACE_BEGIN